Package net.minecraft.util.math
Enum DirectionTransformation
- All Implemented Interfaces:
Serializable
,Comparable<DirectionTransformation>
,java.lang.constant.Constable
,StringIdentifiable
public enum DirectionTransformation extends Enum<DirectionTransformation> implements StringIdentifiable
-
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 AxisTransformation
axisTransformation
private static DirectionTransformation[][]
COMBINATIONS
private boolean
flipX
private boolean
flipY
private boolean
flipZ
private static DirectionTransformation[]
INVERSES
private Map<Direction,Direction>
mappings
private Matrix3f
matrix
private String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
DirectionTransformation(String name, AxisTransformation axisTransformation, boolean flipX, boolean flipY, boolean flipZ)
-
Method Summary
Modifier and Type Method Description String
asString()
private BooleanList
getAxisFlips()
Direction
map(Direction direction)
JigsawOrientation
mapJigsawOrientation(JigsawOrientation orientation)
DirectionTransformation
prepend(DirectionTransformation transformation)
boolean
shouldFlipDirection(Direction.Axis axis)
String
toString()
static DirectionTransformation
valueOf(String name)
Returns the enum constant of this type with the specified name.static DirectionTransformation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
-
ROT_180_FACE_XY
-
ROT_180_FACE_XZ
-
ROT_180_FACE_YZ
-
ROT_120_NNN
-
ROT_120_NNP
-
ROT_120_NPN
-
ROT_120_NPP
-
ROT_120_PNN
-
ROT_120_PNP
-
ROT_120_PPN
-
ROT_120_PPP
-
ROT_180_EDGE_XY_NEG
-
ROT_180_EDGE_XY_POS
-
ROT_180_EDGE_XZ_NEG
-
ROT_180_EDGE_XZ_POS
-
ROT_180_EDGE_YZ_NEG
-
ROT_180_EDGE_YZ_POS
-
ROT_90_X_NEG
-
ROT_90_X_POS
-
ROT_90_Y_NEG
-
ROT_90_Y_POS
-
ROT_90_Z_NEG
-
ROT_90_Z_POS
-
INVERSION
-
INVERT_X
-
INVERT_Y
-
INVERT_Z
-
ROT_60_REF_NNN
-
ROT_60_REF_NNP
-
ROT_60_REF_NPN
-
ROT_60_REF_NPP
-
ROT_60_REF_PNN
-
ROT_60_REF_PNP
-
ROT_60_REF_PPN
-
ROT_60_REF_PPP
-
SWAP_XY
-
SWAP_YZ
-
SWAP_XZ
-
SWAP_NEG_XY
-
SWAP_NEG_YZ
-
SWAP_NEG_XZ
-
ROT_90_REF_X_NEG
-
ROT_90_REF_X_POS
-
ROT_90_REF_Y_NEG
-
ROT_90_REF_Y_POS
-
ROT_90_REF_Z_NEG
-
ROT_90_REF_Z_POS
-
-
Field Details
-
COMBINATIONS
-
INVERSES
-
matrix
-
name
-
mappings
-
flipX
private final boolean flipX -
flipY
private final boolean flipY -
flipZ
private final boolean flipZ -
axisTransformation
-
-
Constructor Details
-
DirectionTransformation
private DirectionTransformation(String name, AxisTransformation axisTransformation, boolean flipX, boolean flipY, boolean flipZ)
-
-
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
-
getAxisFlips
-
prepend
-
toString
- Overrides:
toString
in classEnum<DirectionTransformation>
-
asString
- Specified by:
asString
in interfaceStringIdentifiable
-
map
-
shouldFlipDirection
-
mapJigsawOrientation
-