public static enum RecipeUnlockingRequirement.UnlockingContext extends java.lang.Enum<RecipeUnlockingRequirement.UnlockingContext>
| Enum Constant and Description |
|---|
ALWAYS_UNLOCKED |
NONE |
PLAYER_HAS_MANY_ITEMS |
PLAYER_IN_WATER |
| Modifier and Type | Method and Description |
|---|---|
static RecipeUnlockingRequirement.UnlockingContext |
from(int id) |
static RecipeUnlockingRequirement.UnlockingContext |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecipeUnlockingRequirement.UnlockingContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecipeUnlockingRequirement.UnlockingContext NONE
public static final RecipeUnlockingRequirement.UnlockingContext ALWAYS_UNLOCKED
public static final RecipeUnlockingRequirement.UnlockingContext PLAYER_IN_WATER
public static final RecipeUnlockingRequirement.UnlockingContext PLAYER_HAS_MANY_ITEMS
public static RecipeUnlockingRequirement.UnlockingContext[] values()
for (RecipeUnlockingRequirement.UnlockingContext c : RecipeUnlockingRequirement.UnlockingContext.values()) System.out.println(c);
public static RecipeUnlockingRequirement.UnlockingContext valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static RecipeUnlockingRequirement.UnlockingContext from(int id)