Examples of MiningTool


Examples of org.spout.vanilla.material.item.tool.MiningTool

      return false;
    }
    VanillaBlockMaterial block = (VanillaBlockMaterial) position.getBlock().getMaterial();
    float modifier = 1f, multiplicator = 1.5f;
    ToolType type = null;
    MiningTool mining = null;

    if (tool instanceof MiningTool) {
      mining = (MiningTool) tool;
      type = mining.getToolType();
    }

    if (block.isMiningType(type)) {
      if (mining != null) {
        modifier = mining.getDiggingSpeed();
      }
    } else {
      multiplicator = 5f;
    }
    byte maxAmount = 8;
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.