public override void HandleAnimation(Packet18Animation par1Packet18Animation) { Entity entity = GetEntityByID(par1Packet18Animation.EntityId); if (entity == null) { return; } if (par1Packet18Animation.Animate == 1) { EntityPlayer entityplayer = (EntityPlayer)entity; entityplayer.SwingItem(); } else if (par1Packet18Animation.Animate == 2) { entity.PerformHurtAnimation(); } else if (par1Packet18Animation.Animate == 3) { EntityPlayer entityplayer1 = (EntityPlayer)entity; entityplayer1.WakeUpPlayer(false, false, false); } else if (par1Packet18Animation.Animate == 4) { EntityPlayer entityplayer2 = (EntityPlayer)entity; entityplayer2.Func_6420_o(); } else if (par1Packet18Animation.Animate == 6) { Mc.EffectRenderer.AddEffect(new EntityCrit2FX(Mc.TheWorld, entity)); } else if (par1Packet18Animation.Animate == 7) { EntityCrit2FX entitycrit2fx = new EntityCrit2FX(Mc.TheWorld, entity, "magicCrit"); Mc.EffectRenderer.AddEffect(entitycrit2fx); } else if (par1Packet18Animation.Animate == 5) { if (!(entity is EntityOtherPlayerMP)) { ; } } }
public override void OnEnchantmentCritical(Entity par1Entity) { EntityCrit2FX entitycrit2fx = new EntityCrit2FX(Mc.TheWorld, par1Entity, "magicCrit"); Mc.EffectRenderer.AddEffect(entitycrit2fx); }