public static enum EnumFacing.Axis extends java.lang.Enum<EnumFacing.Axis> implements IStringSerializable
Modifier and Type | Method and Description |
---|---|
boolean |
apply(EnumFacing p_apply_1_) |
static EnumFacing.Axis |
byName(java.lang.String name)
Get the axis specified by the given name
|
java.lang.String |
getName() |
java.lang.String |
getName2()
Like getName but doesn't override the method from Enum.
|
EnumFacing.Plane |
getPlane()
Get this Axis' Plane (VERTICAL for Y, HORIZONTAL for X and Z)
|
boolean |
isHorizontal()
If this Axis is on the horizontal plane (true for X and Z)
|
boolean |
isVertical()
If this Axis is on the vertical plane (Only true for Y)
|
java.lang.String |
toString() |
static EnumFacing.Axis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumFacing.Axis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumFacing.Axis X
public static final EnumFacing.Axis Y
public static final EnumFacing.Axis Z
public static EnumFacing.Axis[] values()
for (EnumFacing.Axis c : EnumFacing.Axis.values()) System.out.println(c);
public static EnumFacing.Axis 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 static EnumFacing.Axis byName(java.lang.String name)
public java.lang.String getName2()
public boolean isVertical()
public boolean isHorizontal()
public java.lang.String toString()
toString
in class java.lang.Enum<EnumFacing.Axis>
public boolean apply(EnumFacing p_apply_1_)
public EnumFacing.Plane getPlane()
public java.lang.String getName()
getName
in interface IStringSerializable