Exemplo n.º 1
0
 public virtual void UseCurrentItemOnEntity(net.minecraft.src.Entity entity)
 {
     if (entity.Interact(this))
     {
         return;
     }
     net.minecraft.src.ItemStack itemstack = GetCurrentEquippedItem();
     if (itemstack != null && (entity is net.minecraft.src.EntityLiving))
     {
         itemstack.UseItemOnEntity((net.minecraft.src.EntityLiving)entity);
         if (itemstack.stackSize <= 0)
         {
             itemstack.Func_577_a(this);
             DestroyCurrentEquippedItem();
         }
     }
 }