示例#1
0
 public virtual int GetDamageVsEntity(net.minecraft.src.Entity entity)
 {
     net.minecraft.src.ItemStack itemstack = GetStackInSlot(currentItem);
     if (itemstack != null)
     {
         return(itemstack.GetDamageVsEntity(entity));
     }
     else
     {
         return(1);
     }
 }