Class ToolAction

java.lang.Object
net.neoforged.neoforge.common.ToolAction

public final class ToolAction extends Object
  • Field Details Link icon

  • Constructor Details Link icon

    • ToolAction Link icon

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

    • getActions Link icon

      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 Link icon

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

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

      public String toString()
      Overrides:
      toString in class Object