Record Class BlockElementFace.UVs

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockElementFace.UVs
Enclosing class:
BlockElementFace

public static record BlockElementFace.UVs(float minU, float minV, float maxU, float maxV) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the maxU record component.
    private final float
    The field for the maxV record component.
    private final float
    The field for the minU record component.
    private final float
    The field for the minV record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UVs(float minU, float minV, float maxU, float maxV)
    Creates an instance of a UVs record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    getVertexU(int p_405872_)
     
    float
    getVertexV(int p_405480_)
     
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the maxU record component.
    float
    Returns the value of the maxV record component.
    float
    Returns the value of the minU record component.
    float
    Returns the value of the minV record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • minU

      private final float minU
      The field for the minU record component.
    • minV

      private final float minV
      The field for the minV record component.
    • maxU

      private final float maxU
      The field for the maxU record component.
    • maxV

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

    • UVs

      public UVs(float minU, float minV, float maxU, float maxV)
      Creates an instance of a UVs record class.
      Parameters:
      minU - the value for the minU record component
      minV - the value for the minV record component
      maxU - the value for the maxU record component
      maxV - the value for the maxV record component
  • Method Details

    • getVertexU

      public float getVertexU(int p_405872_)
    • getVertexV

      public float getVertexV(int p_405480_)
    • 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. All components in this record class 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.
    • minU

      public float minU()
      Returns the value of the minU record component.
      Returns:
      the value of the minU record component
    • minV

      public float minV()
      Returns the value of the minV record component.
      Returns:
      the value of the minV record component
    • maxU

      public float maxU()
      Returns the value of the maxU record component.
      Returns:
      the value of the maxU record component
    • maxV

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