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 -
Constructor Summary
ConstructorsConstructorDescriptionUVs(float minU, float minV, float maxU, float maxV) Creates an instance of aUVsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatgetVertexU(int pVertexIndex) floatgetVertexV(int pVertexIndex) final inthashCode()Returns a hash code value for this object.floatmaxU()Returns the value of themaxUrecord component.floatmaxV()Returns the value of themaxVrecord component.floatminU()Returns the value of theminUrecord component.floatminV()Returns the value of theminVrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
minU
private final float minUThe field for theminUrecord component. -
minV
private final float minVThe field for theminVrecord component. -
maxU
private final float maxUThe field for themaxUrecord component. -
maxV
private final float maxVThe field for themaxVrecord component.
-
-
Constructor Details
-
UVs
public UVs(float minU, float minV, float maxU, float maxV) Creates an instance of aUVsrecord class.- Parameters:
minU- the value for theminUrecord componentminV- the value for theminVrecord componentmaxU- the value for themaxUrecord componentmaxV- the value for themaxVrecord component
-
-
Method Details
-
getVertexU
public float getVertexU(int pVertexIndex) -
getVertexV
public float getVertexV(int pVertexIndex) -
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. -
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. -
equals
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 '=='. -
minU
public float minU()Returns the value of theminUrecord component.- Returns:
- the value of the
minUrecord component
-
minV
public float minV()Returns the value of theminVrecord component.- Returns:
- the value of the
minVrecord component
-
maxU
public float maxU()Returns the value of themaxUrecord component.- Returns:
- the value of the
maxUrecord component
-
maxV
public float maxV()Returns the value of themaxVrecord component.- Returns:
- the value of the
maxVrecord component
-