Record Class UVPair
java.lang.Object
java.lang.Record
net.minecraft.client.model.geom.builders.UVPair
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static longpack(float u, float v) toString()Returns a string representation of this record class.floatu()Returns the value of theurecord component.static floatunpackU(long packed) static floatunpackV(long packed) floatv()Returns the value of thevrecord component.
-
Field Details
-
u
private final float uThe field for theurecord component. -
v
private final float vThe field for thevrecord component.
-
-
Constructor Details
-
UVPair
public UVPair(float u, float v) Creates an instance of aUVPairrecord class.- Parameters:
u- the value for theurecord componentv- the value for thevrecord component
-
-
Method Details
-
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. -
pack
public static long pack(float u, float v) -
unpackU
public static float unpackU(long packed) -
unpackV
public static float unpackV(long packed) -
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 '=='. -
u
public float u()Returns the value of theurecord component.- Returns:
- the value of the
urecord component
-
v
public float v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-