public static enum BlockRailBase.EnumRailDirection extends java.lang.Enum<BlockRailBase.EnumRailDirection> implements IStringSerializable
Enum Constant and Description |
---|
ASCENDING_EAST |
ASCENDING_NORTH |
ASCENDING_SOUTH |
ASCENDING_WEST |
EAST_WEST |
NORTH_EAST |
NORTH_SOUTH |
NORTH_WEST |
SOUTH_EAST |
SOUTH_WEST |
Modifier and Type | Field and Description |
---|---|
private int |
meta |
private static BlockRailBase.EnumRailDirection[] |
META_LOOKUP |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static BlockRailBase.EnumRailDirection |
byMetadata(int meta) |
int |
getMetadata() |
java.lang.String |
getName() |
boolean |
isAscending() |
java.lang.String |
toString() |
static BlockRailBase.EnumRailDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockRailBase.EnumRailDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockRailBase.EnumRailDirection NORTH_SOUTH
public static final BlockRailBase.EnumRailDirection EAST_WEST
public static final BlockRailBase.EnumRailDirection ASCENDING_EAST
public static final BlockRailBase.EnumRailDirection ASCENDING_WEST
public static final BlockRailBase.EnumRailDirection ASCENDING_NORTH
public static final BlockRailBase.EnumRailDirection ASCENDING_SOUTH
public static final BlockRailBase.EnumRailDirection SOUTH_EAST
public static final BlockRailBase.EnumRailDirection SOUTH_WEST
public static final BlockRailBase.EnumRailDirection NORTH_WEST
public static final BlockRailBase.EnumRailDirection NORTH_EAST
private static final BlockRailBase.EnumRailDirection[] META_LOOKUP
private final int meta
private final java.lang.String name
public static BlockRailBase.EnumRailDirection[] values()
for (BlockRailBase.EnumRailDirection c : BlockRailBase.EnumRailDirection.values()) System.out.println(c);
public static BlockRailBase.EnumRailDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMetadata()
public java.lang.String toString()
toString
in class java.lang.Enum<BlockRailBase.EnumRailDirection>
public boolean isAscending()
public static BlockRailBase.EnumRailDirection byMetadata(int meta)
public java.lang.String getName()
getName
in interface IStringSerializable