Package net.minecraft.block
Enum BlockLever.EnumOrientation
- java.lang.Object
-
- java.lang.Enum<BlockLever.EnumOrientation>
-
- net.minecraft.block.BlockLever.EnumOrientation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockLever.EnumOrientation>
,IStringSerializable
- Enclosing class:
- BlockLever
public static enum BlockLever.EnumOrientation extends java.lang.Enum<BlockLever.EnumOrientation> implements IStringSerializable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
DOWN_X
public static final BlockLever.EnumOrientation DOWN_X
-
EAST
public static final BlockLever.EnumOrientation EAST
-
WEST
public static final BlockLever.EnumOrientation WEST
-
SOUTH
public static final BlockLever.EnumOrientation SOUTH
-
NORTH
public static final BlockLever.EnumOrientation NORTH
-
UP_Z
public static final BlockLever.EnumOrientation UP_Z
-
UP_X
public static final BlockLever.EnumOrientation UP_X
-
DOWN_Z
public static final BlockLever.EnumOrientation DOWN_Z
-
-
Method Detail
-
values
public static BlockLever.EnumOrientation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlockLever.EnumOrientation c : BlockLever.EnumOrientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockLever.EnumOrientation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMetadata
public int getMetadata()
-
getFacing
public EnumFacing getFacing()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BlockLever.EnumOrientation>
-
byMetadata
public static BlockLever.EnumOrientation byMetadata(int meta)
-
forFacings
public static BlockLever.EnumOrientation forFacings(EnumFacing clickedSide, EnumFacing entityFacing)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIStringSerializable
-
-