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

public enum AxisAlignedRotation extends Enum<AxisAlignedRotation>
This enum contains rotational state data that can be used to rotate a render while retaining alignment with the world axis.
  • Enum Constant Details

  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AxisAlignedRotation> 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 rotation
      A 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 offset
      A predetermined offset that will realign the render when translated.
  • Method Details

    • values

      public static AxisAlignedRotation[] 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

      public static AxisAlignedRotation valueOf(String name)
      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 name
      NullPointerException - if the argument is null