public static enum GenerationStep.Carver extends Enum<GenerationStep.Carver> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private static Map<String,GenerationStep.Carver> |
BY_NAME |
static com.mojang.serialization.Codec<GenerationStep.Carver> |
CODEC |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static GenerationStep.Carver |
byName(String name) |
String |
getName() |
static GenerationStep.Carver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenerationStep.Carver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final GenerationStep.Carver AIR
public static final GenerationStep.Carver LIQUID
public static final com.mojang.serialization.Codec<GenerationStep.Carver> CODEC
private static final Map<String,GenerationStep.Carver> BY_NAME
private final String name
public static GenerationStep.Carver[] values()
for (GenerationStep.Carver c : GenerationStep.Carver.values()) System.out.println(c);
public static GenerationStep.Carver 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 String getName()
@Nullable public static GenerationStep.Carver byName(String name)
public String asString()
asString
in interface StringIdentifiable