public void handleAnimation(Packet18Animation par1Packet18Animation) { if (par1Packet18Animation.animate == 1) { playerEntity.swingItem(); } }