Search in sources :

Example 1 with MessageWaystones

use of net.blay09.mods.waystones.network.message.MessageWaystones in project Waystones by blay09.

the class WaystoneManager method sendPlayerWaystones.

public static void sendPlayerWaystones(EntityPlayer player) {
    if (player instanceof EntityPlayerMP) {
        PlayerWaystoneData waystoneData = PlayerWaystoneData.fromPlayer(player);
        NetworkHandler.channel.sendTo(new MessageWaystones(waystoneData.getWaystones(), waystoneData.getLastFreeWarp(), waystoneData.getLastWarpStoneUse()), (EntityPlayerMP) player);
    }
}
Also used : MessageWaystones(net.blay09.mods.waystones.network.message.MessageWaystones) EntityPlayerMP(net.minecraft.entity.player.EntityPlayerMP)

Aggregations

MessageWaystones (net.blay09.mods.waystones.network.message.MessageWaystones)1 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)1