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, BlockFaceUV uv, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent)
extends Record
-
Nested Class Summary
Nested Classes -
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 StringThe field for thetexturerecord component.private final intThe field for thetintIndexrecord component.private final BlockFaceUVThe field for theuvrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockElementFace(Direction p_111359_, int p_111360_, String p_111361_, BlockFaceUV p_111362_) BlockElementFace(Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, 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.final inthashCode()Returns a hash code value for this object.org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent()Returns the value of theparentrecord component.texture()Returns the value of thetexturerecord component.intReturns the value of thetintIndexrecord component.final StringtoString()Returns a string representation of this record class.uv()Returns the value of theuvrecord component.
-
Field Details
-
cullForDirection
The field for thecullForDirectionrecord component. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
texture
The field for thetexturerecord component. -
uv
The field for theuvrecord 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 p_111359_, int p_111360_, String p_111361_, BlockFaceUV p_111362_) -
BlockElementFace
public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, @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 componentuv- the value for theuvrecord componentfaceData- the value for thefaceDatarecord componentparent- the value for theparentrecord component
-
-
Method Details
-
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
-
uv
Returns the value of theuvrecord component.- Returns:
- the value of the
uvrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-