Class ToolType

java.lang.Object
net.minecraftforge.common.ToolType

public final class ToolType extends Object
  • Field Details

    • VALID_NAME

      private static final Pattern VALID_NAME
    • VALUES

      private static final Map<String,ToolType> VALUES
    • AXE

      public static final ToolType AXE
    • HOE

      public static final ToolType HOE
    • PICKAXE

      public static final ToolType PICKAXE
    • SHOVEL

      public static final ToolType SHOVEL
    • name

      private final String name
  • Constructor Details

    • ToolType

      private ToolType(String name)
  • Method Details

    • get

      public static ToolType get(String name)
      Gets the ToolType for the specified name, or creates a new one if none for that name does yet exist. This method can be called during parallel loading
    • getName

      public String getName()