Record Class CoverModel.Band

java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.handheld.CoverModel.Band
Enclosing class:
CoverModel

public static record CoverModel.Band(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Band(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint)
    Creates an instance of a Band 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.
    float
    out()
    Returns the value of the out record component.
    net.minecraft.resources.Identifier
    Returns the value of the texture record component.
    int
    Returns the value of the tint 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.
    float
    y0()
    Returns the value of the y0 record component.
    float
    y1()
    Returns the value of the y1 record component.

    Methods inherited from class Object

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

    • Band

      public Band(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint)
      Creates an instance of a Band record class.
      Parameters:
      texture - the value for the texture record component
      y0 - the value for the y0 record component
      y1 - the value for the y1 record component
      out - the value for the out 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
      tint - the value for the tint 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.
    • texture

      public net.minecraft.resources.Identifier texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • y0

      public float y0()
      Returns the value of the y0 record component.
      Returns:
      the value of the y0 record component
    • y1

      public float y1()
      Returns the value of the y1 record component.
      Returns:
      the value of the y1 record component
    • out

      public float out()
      Returns the value of the out record component.
      Returns:
      the value of the out 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
    • tint

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