public static enum MineshaftFeature.Type extends Enum<MineshaftFeature.Type>
| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private static Map<String,MineshaftFeature.Type> |
nameMap |
| Modifier and Type | Method and Description |
|---|---|
static MineshaftFeature.Type |
byIndex(int index) |
static MineshaftFeature.Type |
byName(String nam) |
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.
|
public static final MineshaftFeature.Type NORMAL
public static final MineshaftFeature.Type MESA
private static final Map<String,MineshaftFeature.Type> nameMap
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()
public static MineshaftFeature.Type byName(String nam)
public static MineshaftFeature.Type byIndex(int index)