Modifier and Type | Method and Description |
---|---|
static EnumAxis |
fromFacingAxis(net.minecraft.util.Direction.Axis axis) |
static EnumAxis |
fromMeta(int i) |
java.lang.String |
getSerializedName() |
int |
toMeta() |
static EnumAxis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumAxis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumAxis X
public static final EnumAxis Y
public static final EnumAxis Z
public static final EnumAxis NONE
public static EnumAxis[] values()
for (EnumAxis c : EnumAxis.values()) System.out.println(c);
public static EnumAxis 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 java.lang.String getSerializedName()
getSerializedName
in interface net.minecraft.util.IStringSerializable
public int toMeta()
public static EnumAxis fromMeta(int i)
public static EnumAxis fromFacingAxis(net.minecraft.util.Direction.Axis axis)