Record Class DynamicUniforms.ChunkSectionInfo

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.DynamicUniforms.ChunkSectionInfo
All Implemented Interfaces:
DynamicUniformStorage.DynamicUniform
Enclosing class:
DynamicUniforms

public static record DynamicUniforms.ChunkSectionInfo(Matrix4fc modelView, int x, int y, int z, float visibility, int textureAtlasWidth, int textureAtlasHeight) extends Record implements DynamicUniformStorage.DynamicUniform
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Matrix4fc
    The field for the modelView record component.
    private final int
    The field for the textureAtlasHeight record component.
    private final int
    The field for the textureAtlasWidth record component.
    private final float
    The field for the visibility record component.
    private final int
    The field for the x record component.
    private final int
    The field for the y record component.
    private final int
    The field for the z record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChunkSectionInfo(Matrix4fc modelView, int x, int y, int z, float visibility, int textureAtlasWidth, int textureAtlasHeight)
    Creates an instance of a ChunkSectionInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 modelView record component.
    int
    Returns the value of the textureAtlasHeight record component.
    int
    Returns the value of the textureAtlasWidth record component.
    final String
    Returns a string representation of this record class.
    float
    Returns the value of the visibility record component.
    void
    write(ByteBuffer buffer)
     
    int
    x()
    Returns the value of the x record component.
    int
    y()
    Returns the value of the y record component.
    int
    z()
    Returns the value of the z record component.

    Methods inherited from class Object

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

    • modelView

      private final Matrix4fc modelView
      The field for the modelView record component.
    • x

      private final int x
      The field for the x record component.
    • y

      private final int y
      The field for the y record component.
    • z

      private final int z
      The field for the z record component.
    • visibility

      private final float visibility
      The field for the visibility record component.
    • textureAtlasWidth

      private final int textureAtlasWidth
      The field for the textureAtlasWidth record component.
    • textureAtlasHeight

      private final int textureAtlasHeight
      The field for the textureAtlasHeight record component.
  • Constructor Details

    • ChunkSectionInfo

      public ChunkSectionInfo(Matrix4fc modelView, int x, int y, int z, float visibility, int textureAtlasWidth, int textureAtlasHeight)
      Creates an instance of a ChunkSectionInfo record class.
      Parameters:
      modelView - the value for the modelView record component
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      visibility - the value for the visibility record component
      textureAtlasWidth - the value for the textureAtlasWidth record component
      textureAtlasHeight - the value for the textureAtlasHeight record component
  • Method Details

    • write

      public void write(ByteBuffer buffer)
      Specified by:
      write in interface DynamicUniformStorage.DynamicUniform
    • 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.
    • modelView

      public Matrix4fc modelView()
      Returns the value of the modelView record component.
      Returns:
      the value of the modelView record component
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public int z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • visibility

      public float visibility()
      Returns the value of the visibility record component.
      Returns:
      the value of the visibility record component
    • textureAtlasWidth

      public int textureAtlasWidth()
      Returns the value of the textureAtlasWidth record component.
      Returns:
      the value of the textureAtlasWidth record component
    • textureAtlasHeight

      public int textureAtlasHeight()
      Returns the value of the textureAtlasHeight record component.
      Returns:
      the value of the textureAtlasHeight record component