Package net.minecraftforge.common
Class ToolAction
java.lang.Object
net.minecraftforge.common.ToolAction
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Map<String,ToolAction> static final com.mojang.serialization.Codec<ToolAction>private final String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateToolAction(String name) Useget(String)to get or create a ToolAction
- 
Method SummaryModifier and TypeMethodDescriptionstatic ToolActionGets or creates a new ToolAction for the given name.static Collection<ToolAction>Returns all registered actions.name()Returns the name of this tool actiontoString()
- 
Field Details- 
CODEC
- 
actions
- 
name
 
- 
- 
Constructor Details- 
ToolActionUseget(String)to get or create a ToolAction
 
- 
- 
Method Details- 
getActionsReturns all registered actions. This collection can be kept around, and will update itself in response to changes to the map. SeeConcurrentHashMap.values()for details.
- 
getGets or creates a new ToolAction for the given name.
- 
nameReturns the name of this tool action
- 
toString
 
-