public enum ChestType extends Enum<ChestType> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private String |
name |
private int |
opposite |
static ChestType[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
ChestType |
getOpposite() |
static ChestType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChestType[] |
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 ChestType SINGLE
public static final ChestType LEFT
public static final ChestType RIGHT
public static final ChestType[] VALUES
private final String name
private final int opposite
public static ChestType[] values()
for (ChestType c : ChestType.values()) System.out.println(c);
public static ChestType 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 asString()
asString
in interface StringIdentifiable
public ChestType getOpposite()