Record Class BakedQuad

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.BakedQuad
Record Components:
vertexData -
tintIndex -
face -
sprite -
shade -
lightEmission -

@Environment(CLIENT) public record BakedQuad(int[] vertexData, int tintIndex, Direction face, Sprite sprite, boolean shade, int lightEmission) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/BakedQuad
intermediary net/minecraft/class_777
official gyu
named vertexData
intermediary comp_3721
official a
named tintIndex
intermediary comp_3722
official b
named face
intermediary comp_3723
official c
named sprite
intermediary comp_3724
official d
named shade
intermediary comp_3725
official e
named lightEmission
intermediary comp_3726
official f
  • Field Details

    • vertexData

      private final int[] vertexData
      The field for the vertexData record component.
    • tintIndex

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

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

      private final Sprite 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.
  • Constructor Details

    • BakedQuad

      public BakedQuad(int[] vertexData, int tintIndex, Direction face, Sprite sprite, boolean shade, int lightEmission)
      Creates an instance of a BakedQuad record class.
      Parameters:
      vertexData - the value for the vertexData record component
      tintIndex - the value for the tintIndex record component
      face - the value for the face 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
  • Method Details

    • hasTint

      public boolean hasTint()
      Mappings:
      Namespace Name Mixin selector
      named hasTint Lnet/minecraft/client/render/model/BakedQuad;hasTint()Z
      intermediary method_3360 Lnet/minecraft/class_777;method_3360()Z
      official a Lgyu;a()Z
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • vertexData

      public int[] vertexData()
      Returns the value of the vertexData record component.
      Returns:
      the value of the vertexData record component
    • tintIndex

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

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

      public Sprite 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