use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinInfoUpdate in project Armourers-Workshop by RiskyKen.
the class ExPropsPlayerSkinData method checkAndSendCustomArmourDataTo.
private void checkAndSendCustomArmourDataTo(EntityPlayerMP targetPlayer) {
PlayerPointer playerPointer = new PlayerPointer(player);
PacketHandler.networkWrapper.sendTo(new MessageServerSkinInfoUpdate(playerPointer, equipmentData), targetPlayer);
}
use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinInfoUpdate 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);
}
Aggregations