/// <summary> /// Attacks an entity /// </summary> public override void AttackEntity(EntityPlayer par1EntityPlayer, Entity par2Entity) { SyncCurrentPlayItem(); NetClientHandler.AddToSendQueue(new Packet7UseEntity(par1EntityPlayer.EntityId, par2Entity.EntityId, 1)); par1EntityPlayer.AttackTargetEntityWithCurrentItem(par2Entity); }
/// <summary> /// Attacks an entity /// </summary> public virtual void AttackEntity(EntityPlayer par1EntityPlayer, Entity par2Entity) { par1EntityPlayer.AttackTargetEntityWithCurrentItem(par2Entity); }