Record Class DynamicGpuData.TerrainTransform

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.DynamicGpuData.TerrainTransform
All Implemented Interfaces:
DynamicGpuDataStorage.DynamicGpuData
Enclosing class:
DynamicGpuData

public static record DynamicGpuData.TerrainTransform(Matrix4fc modelView, int textureAtlasWidth, int textureAtlasHeight) extends Record implements DynamicGpuDataStorage.DynamicGpuData
  • 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.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TerrainTransform(Matrix4fc modelView, int textureAtlasWidth, int textureAtlasHeight)
    Creates an instance of a TerrainTransform 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.
    void
    write(ByteBuffer buffer)
     

    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.
    • 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

    • TerrainTransform

      public TerrainTransform(Matrix4fc modelView, int textureAtlasWidth, int textureAtlasHeight)
      Creates an instance of a TerrainTransform record class.
      Parameters:
      modelView - the value for the modelView 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 DynamicGpuDataStorage.DynamicGpuData
    • 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
    • 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