public class ActionTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLOCK |
static java.lang.String |
BONUS |
static java.lang.String |
BREWING |
static java.lang.String |
CRAFTING |
static java.lang.String |
PLACE |
static java.lang.String |
SMELTING |
Constructor and Description |
---|
ActionTypes() |
Modifier and Type | Method and Description |
---|---|
static ActionTypes |
Default()
Retrieves the default action registry.
|
java.lang.Integer |
getType(java.lang.String name)
Retrieves a registered action type by name, or NULL if no such type could be found.
|
java.util.Collection<java.lang.Integer> |
getTypes()
Retrieves a collection of every registered action type.
|
void |
register(int id,
java.lang.Iterable<java.lang.String> names)
Registers additional names for a given action type.
|
int |
register(java.lang.String... names)
Registers an action type with a list of names.
|
void |
unregister(int id)
Unregisters a specified action type.
|
public static java.lang.String BLOCK
public static java.lang.String BONUS
public static java.lang.String PLACE
public static java.lang.String SMELTING
public static java.lang.String CRAFTING
public static java.lang.String BREWING
public static ActionTypes Default()
public java.util.Collection<java.lang.Integer> getTypes()
public java.lang.Integer getType(java.lang.String name)
name
- - name of the action type to find.public int register(java.lang.String... names)
names
- - names of the given action type.public void register(int id, java.lang.Iterable<java.lang.String> names)
id
- - unique action type id.names
- - additional list of synonyms/names for this action.public void unregister(int id)
id
- - id of the action type to remove.