Record Class BakedQuad

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BakedQuad
Record Components:
hasAmbientOcclusion - false to force-disable AO for this quad or true to use the behavior dictated by BlockModelPartExtension.ambientOcclusion().

public record BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion) extends Record
  • Field Details

    • position0

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

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

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

      private final 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.
    • tintIndex

      private final int tintIndex
      The field for the tintIndex record component.
    • direction

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

      private final TextureAtlasSprite sprite
      The field for the sprite record component.
    • shade

      private final boolean shade
      The field for the shade record component.
    • lightEmission

      private final int lightEmission
      The field for the lightEmission 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.
    • hasAmbientOcclusion

      private final boolean hasAmbientOcclusion
      The field for the hasAmbientOcclusion record component.
    • VERTEX_COUNT

      public static final int VERTEX_COUNT
      See Also:
  • Constructor Details

    • BakedQuad

      public BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission)
    • BakedQuad

      public BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion)
      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
      tintIndex - the value for the tintIndex record component
      direction - the value for the direction record component
      sprite - the value for the sprite record component
      shade - the value for the shade record component
      lightEmission - the value for the lightEmission record component
      bakedNormals - the value for the bakedNormals record component
      bakedColors - the value for the bakedColors record component
      hasAmbientOcclusion - the value for the hasAmbientOcclusion record component
  • Method Details

    • isTinted

      public boolean isTinted()
    • position

      public Vector3fc position(int pIndex)
    • packedUV

      public long packedUV(int pIndex)
    • 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 '=='.
      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 Vector3fc position0()
      Returns the value of the position0 record component.
      Returns:
      the value of the position0 record component
    • position1

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

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

      public 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
    • tintIndex

      public int tintIndex()
      Returns the value of the tintIndex record component.
      Returns:
      the value of the tintIndex record component
    • direction

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

      public TextureAtlasSprite sprite()
      Returns the value of the sprite record component.
      Returns:
      the value of the sprite record component
    • shade

      public boolean shade()
      Returns the value of the shade record component.
      Returns:
      the value of the shade record component
    • lightEmission

      public int lightEmission()
      Returns the value of the lightEmission record component.
      Returns:
      the value of the lightEmission 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
    • hasAmbientOcclusion

      public boolean hasAmbientOcclusion()
      Returns the value of the hasAmbientOcclusion record component.
      Returns:
      the value of the hasAmbientOcclusion record component