Record Class BakedQuad

java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.geometry.BakedQuad

public record BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
    static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final BakedColors
    The field for the bakedColors record component.
    private final BakedNormals
    The field for the bakedNormals record component.
    private final Direction
    The field for the direction record component.
    static final int
     
    static final int
     
    The field for the materialInfo record component.
    private final long
    The field for the packedUV0 record component.
    private final long
    The field for the packedUV1 record component.
    private final long
    The field for the packedUV2 record component.
    private final long
    The field for the packedUV3 record component.
    private final org.joml.Vector3fc
    The field for the position0 record component.
    private final org.joml.Vector3fc
    The field for the position1 record component.
    private final org.joml.Vector3fc
    The field for the position2 record component.
    private final org.joml.Vector3fc
    The field for the position3 record component.
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo)
     
    BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors)
    Creates an instance of a BakedQuad record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the bakedColors record component.
    Returns the value of the bakedNormals record component.
    Returns the value of the direction record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the materialInfo record component.
    long
    packedUV(int vertex)
     
    long
    Returns the value of the packedUV0 record component.
    long
    Returns the value of the packedUV1 record component.
    long
    Returns the value of the packedUV2 record component.
    long
    Returns the value of the packedUV3 record component.
    org.joml.Vector3fc
    position(int vertex)
     
    org.joml.Vector3fc
    Returns the value of the position0 record component.
    org.joml.Vector3fc
    Returns the value of the position1 record component.
    org.joml.Vector3fc
    Returns the value of the position2 record component.
    org.joml.Vector3fc
    Returns the value of the position3 record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • position0

      private final org.joml.Vector3fc position0
      The field for the position0 record component.
    • position1

      private final org.joml.Vector3fc position1
      The field for the position1 record component.
    • position2

      private final org.joml.Vector3fc position2
      The field for the position2 record component.
    • position3

      private final org.joml.Vector3fc position3
      The field for the position3 record component.
    • packedUV0

      private final long packedUV0
      The field for the packedUV0 record component.
    • packedUV1

      private final long packedUV1
      The field for the packedUV1 record component.
    • packedUV2

      private final long packedUV2
      The field for the packedUV2 record component.
    • packedUV3

      private final long packedUV3
      The field for the packedUV3 record component.
    • direction

      private final Direction direction
      The field for the direction record component.
    • materialInfo

      private final BakedQuad.MaterialInfo materialInfo
      The field for the materialInfo record component.
    • bakedNormals

      private final BakedNormals bakedNormals
      The field for the bakedNormals record component.
    • bakedColors

      private final BakedColors bakedColors
      The field for the bakedColors record component.
    • VERTEX_COUNT

      public static final int VERTEX_COUNT
      See Also:
    • FLAG_TRANSLUCENT

      public static final int FLAG_TRANSLUCENT
      See Also:
    • FLAG_ANIMATED

      public static final int FLAG_ANIMATED
      See Also:
  • Constructor Details

    • BakedQuad

      public BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo)
    • BakedQuad

      public BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors)
      Creates an instance of a BakedQuad record class.
      Parameters:
      position0 - the value for the position0 record component
      position1 - the value for the position1 record component
      position2 - the value for the position2 record component
      position3 - the value for the position3 record component
      packedUV0 - the value for the packedUV0 record component
      packedUV1 - the value for the packedUV1 record component
      packedUV2 - the value for the packedUV2 record component
      packedUV3 - the value for the packedUV3 record component
      direction - the value for the direction record component
      materialInfo - the value for the materialInfo record component
      bakedNormals - the value for the bakedNormals record component
      bakedColors - the value for the bakedColors record component
  • Method Details

    • position

      public org.joml.Vector3fc position(int vertex)
    • packedUV

      public long packedUV(int vertex)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • position0

      public org.joml.Vector3fc position0()
      Returns the value of the position0 record component.
      Returns:
      the value of the position0 record component
    • position1

      public org.joml.Vector3fc position1()
      Returns the value of the position1 record component.
      Returns:
      the value of the position1 record component
    • position2

      public org.joml.Vector3fc position2()
      Returns the value of the position2 record component.
      Returns:
      the value of the position2 record component
    • position3

      public org.joml.Vector3fc position3()
      Returns the value of the position3 record component.
      Returns:
      the value of the position3 record component
    • packedUV0

      public long packedUV0()
      Returns the value of the packedUV0 record component.
      Returns:
      the value of the packedUV0 record component
    • packedUV1

      public long packedUV1()
      Returns the value of the packedUV1 record component.
      Returns:
      the value of the packedUV1 record component
    • packedUV2

      public long packedUV2()
      Returns the value of the packedUV2 record component.
      Returns:
      the value of the packedUV2 record component
    • packedUV3

      public long packedUV3()
      Returns the value of the packedUV3 record component.
      Returns:
      the value of the packedUV3 record component
    • direction

      public Direction direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • materialInfo

      public BakedQuad.MaterialInfo materialInfo()
      Returns the value of the materialInfo record component.
      Returns:
      the value of the materialInfo record component
    • bakedNormals

      public BakedNormals bakedNormals()
      Returns the value of the bakedNormals record component.
      Returns:
      the value of the bakedNormals record component
    • bakedColors

      public BakedColors bakedColors()
      Returns the value of the bakedColors record component.
      Returns:
      the value of the bakedColors record component