Search in sources :

Example 1 with MessageServerSkinWardrobeUpdate

use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinWardrobeUpdate 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);
}
Also used : PlayerPointer(riskyken.armourersWorkshop.common.data.PlayerPointer) MessageServerSkinWardrobeUpdate(riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinWardrobeUpdate)

Example 2 with MessageServerSkinWardrobeUpdate

use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinWardrobeUpdate 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);
}
Also used : PlayerPointer(riskyken.armourersWorkshop.common.data.PlayerPointer) MessageServerSkinWardrobeUpdate(riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinWardrobeUpdate) TargetPoint(cpw.mods.fml.common.network.NetworkRegistry.TargetPoint)

Aggregations

PlayerPointer (riskyken.armourersWorkshop.common.data.PlayerPointer)2 MessageServerSkinWardrobeUpdate (riskyken.armourersWorkshop.common.network.messages.server.MessageServerSkinWardrobeUpdate)2 TargetPoint (cpw.mods.fml.common.network.NetworkRegistry.TargetPoint)1