public enum PistonType extends Enum<PistonType> implements StringIdentifiable
Modifier and Type | Method and Description |
---|---|
String |
asString() |
String |
toString() |
static PistonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PistonType[] |
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, valueOf
createCodec, createCodec, method_28142
public static final PistonType DEFAULT
public static final PistonType STICKY
private final String name
public static PistonType[] values()
for (PistonType c : PistonType.values()) System.out.println(c);
public static PistonType 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 toString()
toString
in class Enum<PistonType>
public String asString()
asString
in interface StringIdentifiable