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); } }