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);
}
}
Aggregations