Class ToolAction

java.lang.Object
net.minecraftforge.common.ToolAction

public final class ToolAction extends Object
  • Field Details

  • Constructor Details

    • ToolAction

      private ToolAction(String name)
      Use get(String) to get or create a ToolAction
  • Method Details

    • getActions

      public static Collection<ToolAction> getActions()
      Returns all registered actions. This collection can be kept around, and will update itself in response to changes to the map. See ConcurrentHashMap.values() for details.
    • get

      public static ToolAction get(String name)
      Gets or creates a new ToolAction for the given name.
    • name

      public String name()
      Returns the name of this tool action
    • toString

      public String toString()
      Overrides:
      toString in class Object