Record Class GuiItemAtlas.SlotView

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.GuiItemAtlas.SlotView
Enclosing class:
GuiItemAtlas

public static record GuiItemAtlas.SlotView(GpuTextureView textureView, float u0, float v0, float u1, float v1) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final GpuTextureView
    The field for the textureView record component.
    private final float
    The field for the u0 record component.
    private final float
    The field for the u1 record component.
    private final float
    The field for the v0 record component.
    private final float
    The field for the v1 record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotView(GpuTextureView textureView, float u0, float v0, float u1, float v1)
    Creates an instance of a SlotView 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 textureView record component.
    final String
    Returns a string representation of this record class.
    float
    u0()
    Returns the value of the u0 record component.
    float
    u1()
    Returns the value of the u1 record component.
    float
    v0()
    Returns the value of the v0 record component.
    float
    v1()
    Returns the value of the v1 record component.

    Methods inherited from class Object

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

    • textureView

      private final GpuTextureView textureView
      The field for the textureView record component.
    • u0

      private final float u0
      The field for the u0 record component.
    • v0

      private final float v0
      The field for the v0 record component.
    • u1

      private final float u1
      The field for the u1 record component.
    • v1

      private final float v1
      The field for the v1 record component.
  • Constructor Details

    • SlotView

      public SlotView(GpuTextureView textureView, float u0, float v0, float u1, float v1)
      Creates an instance of a SlotView record class.
      Parameters:
      textureView - the value for the textureView record component
      u0 - the value for the u0 record component
      v0 - the value for the v0 record component
      u1 - the value for the u1 record component
      v1 - the value for the v1 record component
  • Method Details

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

      public GpuTextureView textureView()
      Returns the value of the textureView record component.
      Returns:
      the value of the textureView record component
    • u0

      public float u0()
      Returns the value of the u0 record component.
      Returns:
      the value of the u0 record component
    • v0

      public float v0()
      Returns the value of the v0 record component.
      Returns:
      the value of the v0 record component
    • u1

      public float u1()
      Returns the value of the u1 record component.
      Returns:
      the value of the u1 record component
    • v1

      public float v1()
      Returns the value of the v1 record component.
      Returns:
      the value of the v1 record component