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 aUVs
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.float
getVertexU
(int p_405872_) float
getVertexV
(int p_405480_) final int
hashCode()
Returns a hash code value for this object.float
maxU()
Returns the value of themaxU
record component.float
maxV()
Returns the value of themaxV
record component.float
minU()
Returns the value of theminU
record component.float
minV()
Returns the value of theminV
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
minU
private final float minUThe field for theminU
record component. -
minV
private final float minVThe field for theminV
record component. -
maxU
private final float maxUThe field for themaxU
record component. -
maxV
private final float maxVThe field for themaxV
record component.
-
-
Constructor Details
-
UVs
public UVs(float minU, float minV, float maxU, float maxV) Creates an instance of aUVs
record class.- Parameters:
minU
- the value for theminU
record componentminV
- the value for theminV
record componentmaxU
- the value for themaxU
record componentmaxV
- the value for themaxV
record component
-
-
Method Details
-
getVertexU
public float getVertexU(int p_405872_) -
getVertexV
public float getVertexV(int p_405480_) -
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 theminU
record component.- Returns:
- the value of the
minU
record component
-
minV
public float minV()Returns the value of theminV
record component.- Returns:
- the value of the
minV
record component
-
maxU
public float maxU()Returns the value of themaxU
record component.- Returns:
- the value of the
maxU
record component
-
maxV
public float maxV()Returns the value of themaxV
record component.- Returns:
- the value of the
maxV
record component
-