Record Class BlockElementFace
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockElementFace
public record BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, @Nullable BlockElementFace.UVs uvs, Quadrant rotation, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Direction
The field for thecullForDirection
record component.private final ExtraFaceData
The field for thefaceData
record component.static final int
private final org.apache.commons.lang3.mutable.MutableObject
<BlockElement> The field for theparent
record component.private final Quadrant
The field for therotation
record component.private final String
The field for thetexture
record component.private final int
The field for thetintIndex
record component.private final BlockElementFace.UVs
The field for theuvs
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockElementFace
(Direction cullForDirection, int tintIndex, String texture, BlockElementFace.UVs uvs, Quadrant rotation) BlockElementFace
(Direction cullForDirection, int tintIndex, String texture, BlockElementFace.UVs uvs, Quadrant rotation, ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) Creates an instance of aBlockElementFace
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecullForDirection
record component.final boolean
Indicates whether some other object is "equal to" this one.faceData()
Returns the value of thefaceData
record component.static float
getU
(BlockElementFace.UVs p_405199_, Quadrant p_404689_, int p_404785_) static float
getV
(BlockElementFace.UVs p_405500_, Quadrant p_404709_, int p_405113_) final int
hashCode()
Returns a hash code value for this object.org.apache.commons.lang3.mutable.MutableObject
<BlockElement> parent()
Returns the value of theparent
record component.rotation()
Returns the value of therotation
record component.texture()
Returns the value of thetexture
record component.int
Returns the value of thetintIndex
record component.final String
toString()
Returns a string representation of this record class.uvs()
Returns the value of theuvs
record component.
-
Field Details
-
cullForDirection
The field for thecullForDirection
record component. -
tintIndex
private final int tintIndexThe field for thetintIndex
record component. -
texture
The field for thetexture
record component. -
uvs
The field for theuvs
record component. -
rotation
The field for therotation
record component. -
faceData
The field for thefaceData
record component. -
parent
The field for theparent
record component. -
NO_TINT
public static final int NO_TINT- See Also:
-
-
Constructor Details
-
BlockElementFace
public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, @Nullable BlockElementFace.UVs uvs, Quadrant rotation) -
BlockElementFace
public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, @Nullable BlockElementFace.UVs uvs, Quadrant rotation, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) Creates an instance of aBlockElementFace
record class.- Parameters:
cullForDirection
- the value for thecullForDirection
record componenttintIndex
- the value for thetintIndex
record componenttexture
- the value for thetexture
record componentuvs
- the value for theuvs
record componentrotation
- the value for therotation
record componentfaceData
- the value for thefaceData
record componentparent
- the value for theparent
record component
-
-
Method Details
-
getU
-
getV
-
faceData
Returns the value of thefaceData
record component.- Returns:
- the value of the
faceData
record component
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
cullForDirection
Returns the value of thecullForDirection
record component.- Returns:
- the value of the
cullForDirection
record component
-
tintIndex
public int tintIndex()Returns the value of thetintIndex
record component.- Returns:
- the value of the
tintIndex
record component
-
texture
Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-
uvs
Returns the value of theuvs
record component.- Returns:
- the value of the
uvs
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-