public static enum BlockLever.EnumOrientation extends java.lang.Enum<BlockLever.EnumOrientation> implements IStringSerializable
Enum Constant and Description |
---|
DOWN_X |
DOWN_Z |
EAST |
NORTH |
SOUTH |
UP_X |
UP_Z |
WEST |
Modifier and Type | Method and Description |
---|---|
static BlockLever.EnumOrientation |
byMetadata(int meta) |
static BlockLever.EnumOrientation |
forFacings(EnumFacing clickedSide,
EnumFacing entityFacing) |
EnumFacing |
getFacing() |
int |
getMetadata() |
java.lang.String |
getName() |
java.lang.String |
toString() |
static BlockLever.EnumOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockLever.EnumOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockLever.EnumOrientation DOWN_X
public static final BlockLever.EnumOrientation EAST
public static final BlockLever.EnumOrientation WEST
public static final BlockLever.EnumOrientation SOUTH
public static final BlockLever.EnumOrientation NORTH
public static final BlockLever.EnumOrientation UP_Z
public static final BlockLever.EnumOrientation UP_X
public static final BlockLever.EnumOrientation DOWN_Z
public static BlockLever.EnumOrientation[] values()
for (BlockLever.EnumOrientation c : BlockLever.EnumOrientation.values()) System.out.println(c);
public static BlockLever.EnumOrientation 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 EnumFacing getFacing()
public java.lang.String toString()
toString
in class java.lang.Enum<BlockLever.EnumOrientation>
public static BlockLever.EnumOrientation byMetadata(int meta)
public static BlockLever.EnumOrientation forFacings(EnumFacing clickedSide, EnumFacing entityFacing)
public java.lang.String getName()
getName
in interface IStringSerializable