Package net.minecraft.src

Examples of net.minecraft.src.ItemStack.canHarvestBlock()


      ItemStack var5 = this.inventory.getCurrentItem();

      if (var4 > 0 && var5 != null) {
        float var6 = (float)(var4 * var4 + 1);

        if (!var5.canHarvestBlock(par1Block) && var3 <= 1.0F) {
          var3 += var6 * 0.08F;
        } else {
          var3 += var6;
        }
      }
View Full Code Here


        }

        if (this.getCurrentEquippedItem() != null) {
          ItemStack var6 = this.getCurrentEquippedItem();

          if (var6.canHarvestBlock(var5) || var6.getStrVsBlock(var5) > 1.0F) {
            return true;
          }
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.