Search in sources :

Example 1 with MessageServerSkinInfoUpdate

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

Example 2 with MessageServerSkinInfoUpdate

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

Aggregations

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