Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • PICKAXE

        public static final ToolType PICKAXE
      • SHOVEL

        public static final ToolType SHOVEL
      • name

        private final java.lang.String name
    • Constructor Detail

      • ToolType

        private ToolType​(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()