use of riskyken.armourersWorkshop.common.data.PlayerPointer in project Armourers-Workshop by RiskyKen.
the class ExPropsPlayerSkinData method sendNakedData.
private void sendNakedData(EntityPlayerMP targetPlayer) {
PlayerPointer playerPointer = new PlayerPointer(player);
PacketHandler.networkWrapper.sendTo(new MessageServerSkinWardrobeUpdate(playerPointer, this.equipmentWardrobeData), targetPlayer);
}
use of riskyken.armourersWorkshop.common.data.PlayerPointer in project Armourers-Workshop by RiskyKen.
the class ExPropsPlayerSkinData method updateEquipmentDataToPlayersAround.
public void updateEquipmentDataToPlayersAround() {
if (!allowNetworkUpdates) {
return;
}
TargetPoint p = new TargetPoint(player.dimension, player.posX, player.posY, player.posZ, 512);
PlayerPointer playerPointer = new PlayerPointer(player);
PacketHandler.networkWrapper.sendToAllAround(new MessageServerSkinInfoUpdate(playerPointer, equipmentData), p);
}
use of riskyken.armourersWorkshop.common.data.PlayerPointer in project Armourers-Workshop by RiskyKen.
the class ExPropsPlayerSkinData method sendSkinData.
private void sendSkinData() {
TargetPoint p = new TargetPoint(player.dimension, player.posX, player.posY, player.posZ, 512);
PlayerPointer playerPointer = new PlayerPointer(player);
PacketHandler.networkWrapper.sendToAllAround(new MessageServerSkinWardrobeUpdate(playerPointer, this.equipmentWardrobeData), p);
}
use of riskyken.armourersWorkshop.common.data.PlayerPointer in project Armourers-Workshop by RiskyKen.
the class MessageServerSkinWardrobeUpdate method fromBytes.
@Override
public void fromBytes(ByteBuf buf) {
this.playerPointer = new PlayerPointer(buf);
this.equipmentWardrobeData.fromBytes(buf);
}
use of riskyken.armourersWorkshop.common.data.PlayerPointer in project Armourers-Workshop by RiskyKen.
the class PaintingHelper method getLocalPlayersSkinColour.
@SideOnly(Side.CLIENT)
public static int getLocalPlayersSkinColour() {
PlayerPointer playerPointer = new PlayerPointer(Minecraft.getMinecraft().thePlayer);
EquipmentWardrobeData ewd = ClientProxy.equipmentWardrobeHandler.getEquipmentWardrobeData(playerPointer);
if (ewd != null) {
return ewd.skinColour;
}
return Color.decode("#F9DFD2").getRGB();
}
Aggregations