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
invalid reference
net.neoforged.neoforge.client.extensions.IBakedModelExtension#useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState, net.neoforged.neoforge.model.data.ModelData, net.minecraft.client.renderer.RenderType)

public record BakedQuad(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, boolean hasAmbientOcclusion) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Direction
    The field for the direction record component.
    private final boolean
    The field for the hasAmbientOcclusion record component.
    private final int
    The field for the lightEmission record component.
    private final boolean
    The field for the shade record component.
    private final TextureAtlasSprite
    The field for the sprite record component.
    private final int
    The field for the tintIndex record component.
    private final int[]
    The field for the vertices record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BakedQuad(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission)
     
    BakedQuad(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, boolean hasAmbientOcclusion)
    Creates an instance of a BakedQuad record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the direction record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the hasAmbientOcclusion record component.
    final int
    Returns a hash code value for this object.
    boolean
     
    int
    Returns the value of the lightEmission record component.
    boolean
    Returns the value of the shade record component.
    Returns the value of the sprite record component.
    int
    Returns the value of the tintIndex record component.
    final String
    Returns a string representation of this record class.
    int[]
    Returns the value of the vertices record component.

    Methods inherited from class java.lang.Object

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

    • vertices

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

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

    • BakedQuad

      public BakedQuad(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission)
    • BakedQuad

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

    • isTinted

      public boolean isTinted()
    • 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.
    • vertices

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

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