Package net.minecraftforge.common
Class ToolType
- java.lang.Object
-
- net.minecraftforge.common.ToolType
-
public final class ToolType extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ToolType(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ToolType
get(java.lang.String name)
Gets the ToolType for the specified name, or creates a new one if none for that name does yet exist.java.lang.String
getName()
-
-
-
Field Detail
-
VALID_NAME
private static final java.util.regex.Pattern VALID_NAME
-
VALUES
private static final java.util.Map<java.lang.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 java.lang.String name
-
-
Method Detail
-
get
public static ToolType get(java.lang.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 java.lang.String getName()
-
-