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 packedUV) static floatunpackV(long packedUV) 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
-
pack
public static long pack(float u, float v) -
unpackU
public static float unpackU(long packedUV) -
unpackV
public static float unpackV(long packedUV) -
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-