Package net.minecraft.util.math
Enum AxisTransformation
- All Implemented Interfaces:
Serializable
,Comparable<AxisTransformation>
,java.lang.constant.Constable
public enum AxisTransformation extends Enum<AxisTransformation>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static AxisTransformation[][]
COMBINATIONS
private int[]
mappings
private Matrix3f
matrix
-
Constructor Summary
Constructors Modifier Constructor Description private
AxisTransformation(int xMapping, int yMapping, int zMapping)
-
Method Summary
Modifier and Type Method Description Matrix3f
getMatrix()
int
map(int oldAxis)
AxisTransformation
prepend(AxisTransformation transformation)
static AxisTransformation
valueOf(String name)
Returns the enum constant of this type with the specified name.static AxisTransformation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
P123
-
P213
-
P132
-
P231
-
P312
-
P321
-
-
Field Details
-
COMBINATIONS
-
mappings
private final int[] mappings -
matrix
-
-
Constructor Details
-
AxisTransformation
private AxisTransformation(int xMapping, int yMapping, int zMapping)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
prepend
-
map
public int map(int oldAxis) -
getMatrix
-