Search in sources :

Example 1 with MessageSoulSync

use of net.silentchaos512.gems.network.message.MessageSoulSync in project SilentGems by SilentChaos512.

the class ToolSoul method sendUpdatePacket.

protected void sendUpdatePacket(ItemStack tool, EntityPlayer player, SoulSkill skillLearned, int skillLevel) {
    // Server side: send update packet to player.
    if (!player.world.isRemote) {
        UUID uuid = ToolHelper.getSoulUUID(tool);
        MessageSoulSync message = new MessageSoulSync(uuid, xp, level, actionPoints, skillLearned, skillLevel);
        NetworkHandler.INSTANCE.sendTo(message, (EntityPlayerMP) player);
    }
}
Also used : MessageSoulSync(net.silentchaos512.gems.network.message.MessageSoulSync) UUID(java.util.UUID)

Aggregations

UUID (java.util.UUID)1 MessageSoulSync (net.silentchaos512.gems.network.message.MessageSoulSync)1