public static enum MineshaftFeature.Type extends Enum<MineshaftFeature.Type> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private static Map<String,MineshaftFeature.Type> |
BY_NAME |
static com.mojang.serialization.Codec<MineshaftFeature.Type> |
CODEC |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static MineshaftFeature.Type |
byIndex(int index) |
private static MineshaftFeature.Type |
byName(String name) |
String |
getName() |
static MineshaftFeature.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MineshaftFeature.Type[] |
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 MineshaftFeature.Type NORMAL
public static final MineshaftFeature.Type MESA
public static final com.mojang.serialization.Codec<MineshaftFeature.Type> CODEC
private static final Map<String,MineshaftFeature.Type> BY_NAME
private final String name
public static MineshaftFeature.Type[] values()
for (MineshaftFeature.Type c : MineshaftFeature.Type.values()) System.out.println(c);
public static MineshaftFeature.Type 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()
private static MineshaftFeature.Type byName(String name)
public static MineshaftFeature.Type byIndex(int index)
public String asString()
asString
in interface StringIdentifiable