Package net.minecraft.util
Enum AxisRotation
- java.lang.Object
-
- java.lang.Enum<AxisRotation>
-
- net.minecraft.util.AxisRotation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AxisRotation>
public enum AxisRotation extends java.lang.Enum<AxisRotation>
-
-
Field Summary
Fields Modifier and Type Field Description static Direction.Axis[]
AXIS_VALUES
static AxisRotation[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
AxisRotation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AxisRotation
between(Direction.Axis p_197516_0_, Direction.Axis p_197516_1_)
abstract int
cycle(int p_197517_1_, int p_197517_2_, int p_197517_3_, Direction.Axis p_197517_4_)
abstract Direction.Axis
cycle(Direction.Axis p_197513_1_)
abstract AxisRotation
inverse()
static AxisRotation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AxisRotation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AxisRotation NONE
-
FORWARD
public static final AxisRotation FORWARD
-
BACKWARD
public static final AxisRotation BACKWARD
-
-
Field Detail
-
AXIS_VALUES
public static final Direction.Axis[] AXIS_VALUES
-
VALUES
public static final AxisRotation[] VALUES
-
-
Method Detail
-
values
public static AxisRotation[] 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 (AxisRotation c : AxisRotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AxisRotation 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
-
cycle
public abstract int cycle(int p_197517_1_, int p_197517_2_, int p_197517_3_, Direction.Axis p_197517_4_)
-
cycle
public abstract Direction.Axis cycle(Direction.Axis p_197513_1_)
-
inverse
public abstract AxisRotation inverse()
-
between
public static AxisRotation between(Direction.Axis p_197516_0_, Direction.Axis p_197516_1_)
-
-