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 classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thecullForDirectionrecord component.private final ExtraFaceDataThe field for thefaceDatarecord component.static final intprivate final org.apache.commons.lang3.mutable.MutableObject<BlockElement> The field for theparentrecord component.private final QuadrantThe field for therotationrecord component.private final StringThe field for thetexturerecord component.private final intThe field for thetintIndexrecord component.private final BlockElementFace.UVsThe field for theuvsrecord 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 aBlockElementFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecullForDirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.faceData()Returns the value of thefaceDatarecord component.static floatgetU(BlockElementFace.UVs pUvs, Quadrant pRotation, int pVertexIndex) static floatgetV(BlockElementFace.UVs pUvs, Quadrant pRotation, int pVertexIndex) final inthashCode()Returns a hash code value for this object.org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent()Returns the value of theparentrecord component.rotation()Returns the value of therotationrecord component.texture()Returns the value of thetexturerecord component.intReturns the value of thetintIndexrecord component.final StringtoString()Returns a string representation of this record class.uvs()Returns the value of theuvsrecord component.
-
Field Details
-
cullForDirection
The field for thecullForDirectionrecord component. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
texture
The field for thetexturerecord component. -
uvs
The field for theuvsrecord component. -
rotation
The field for therotationrecord component. -
faceData
The field for thefaceDatarecord component. -
parent
The field for theparentrecord 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 aBlockElementFacerecord class.- Parameters:
cullForDirection- the value for thecullForDirectionrecord componenttintIndex- the value for thetintIndexrecord componenttexture- the value for thetexturerecord componentuvs- the value for theuvsrecord componentrotation- the value for therotationrecord componentfaceData- the value for thefaceDatarecord componentparent- the value for theparentrecord component
-
-
Method Details
-
getU
-
getV
-
faceData
Returns the value of thefaceDatarecord component.- Returns:
- the value of the
faceDatarecord 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 thecullForDirectionrecord component.- Returns:
- the value of the
cullForDirectionrecord component
-
tintIndex
public int tintIndex()Returns the value of thetintIndexrecord component.- Returns:
- the value of the
tintIndexrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
uvs
Returns the value of theuvsrecord component.- Returns:
- the value of the
uvsrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-