@Environment(value=CLIENT) public enum TutorialStep extends Enum<TutorialStep>
Enum Constant and Description |
---|
CRAFT_PLANKS |
FIND_TREE |
MOVEMENT |
NONE |
OPEN_INVENTORY |
PUNCH_TREE |
Modifier and Type | Field and Description |
---|---|
private Function<TutorialManager,? extends TutorialStepHandler> |
handlerFactory |
private String |
name |
Modifier and Type | Method and Description |
---|---|
static TutorialStep |
byName(String name) |
TutorialStepHandler |
createHandler(TutorialManager manager) |
String |
getName() |
static TutorialStep |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TutorialStep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TutorialStep MOVEMENT
public static final TutorialStep FIND_TREE
public static final TutorialStep PUNCH_TREE
public static final TutorialStep OPEN_INVENTORY
public static final TutorialStep CRAFT_PLANKS
public static final TutorialStep NONE
private final String name
private final Function<TutorialManager,? extends TutorialStepHandler> handlerFactory
public static TutorialStep[] values()
for (TutorialStep c : TutorialStep.values()) System.out.println(c);
public static TutorialStep valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic TutorialStepHandler createHandler(TutorialManager manager)
public String getName()
public static TutorialStep byName(String name)