コード例 #1
0
 public virtual bool CanHarvestBlock(net.minecraft.src.Block block)
 {
     if (block.blockMaterial.Func_31055_i())
     {
         return(true);
     }
     net.minecraft.src.ItemStack itemstack = GetStackInSlot(currentItem);
     if (itemstack != null)
     {
         return(itemstack.CanHarvestBlock(block));
     }
     else
     {
         return(false);
     }
 }