Enum Class AxisAlignedRotation
java.lang.Object
java.lang.Enum<AxisAlignedRotation>
net.darkhax.botanypots.common.api.data.display.math.AxisAlignedRotation
- All Implemented Interfaces:
Serializable,Comparable<AxisAlignedRotation>,Constable
This enum contains rotational state data that can be used to rotate a render while retaining alignment with the world
axis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AxisAlignedRotation> static final net.darkhax.bookshelf.common.api.data.codecs.map.MapCodecHelper<AxisAlignedRotation> final org.joml.Vector3fA predetermined offset that will realign the render when translated.final org.joml.QuaternionfA Quaternion that contains the rotational information.static final net.darkhax.bookshelf.common.api.data.codecs.EnumStreamCodec<AxisAlignedRotation> -
Method Summary
Modifier and TypeMethodDescriptionstatic AxisAlignedRotationReturns the enum constant of this class with the specified name.static AxisAlignedRotation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X_0
-
X_90
-
X_180
-
X_270
-
Y_0
-
Y_90
-
Y_180
-
Y_270
-
Z_0
-
Z_90
-
Z_180
-
Z_270
-
-
Field Details
-
CODEC
-
CODEC_HELPER
public static final net.darkhax.bookshelf.common.api.data.codecs.map.MapCodecHelper<AxisAlignedRotation> CODEC_HELPER -
STREAM
public static final net.darkhax.bookshelf.common.api.data.codecs.EnumStreamCodec<AxisAlignedRotation> STREAM -
rotation
public final org.joml.Quaternionf rotationA Quaternion that contains the rotational information. In this case it represents a 0, 90, 180, or 270-degree rotation along the X, Y, or Z axis. -
offset
public final org.joml.Vector3f offsetA predetermined offset that will realign the render when translated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-