public void handleAnimation(Packet18Animation par1Packet18Animation)
    {
        Entity var2 = this.getEntityByID(par1Packet18Animation.entityId);

        if (var2 != null)
        {
            EntityPlayer var3;

            if (par1Packet18Animation.animate == 1)
            {
                var3 = (EntityPlayer)var2;
                var3.swingItem();
            }
            else if (par1Packet18Animation.animate == 2)
            {
                var2.performHurtAnimation();
            }
            else if (par1Packet18Animation.animate == 3)
            {
                var3 = (EntityPlayer)var2;
                var3.wakeUpPlayer(false, false, false);
            }
            else if (par1Packet18Animation.animate == 4)
            {
                var3 = (EntityPlayer)var2;
                var3.func_6420_o();
            }
            else if (par1Packet18Animation.animate == 6)
            {
                this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, var2));
            }
            else if (par1Packet18Animation.animate == 7)
            {
                EntityCrit2FX var4 = new EntityCrit2FX(this.mc.theWorld, var2, "magicCrit");
                this.mc.effectRenderer.addEffect(var4);
            }
            else if (par1Packet18Animation.animate == 5 && var2 instanceof EntityOtherPlayerMP)
            {
                ;
            }
        }
    }