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
-
Field Summary
Modifier 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 String
The field for thetexture
record component.private final int
The field for thetintIndex
record component.private final BlockFaceUV
The field for theuv
record component. -
Constructor Summary
ConstructorDescriptionBlockElementFace
(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 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.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.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.uv()
Returns the value of theuv
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. -
uv
The field for theuv
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 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 aBlockElementFace
record class.- Parameters:
cullForDirection
- the value for thecullForDirection
record componenttintIndex
- the value for thetintIndex
record componenttexture
- the value for thetexture
record componentuv
- the value for theuv
record componentfaceData
- the value for thefaceData
record componentparent
- the value for theparent
record component
-
-
Method Details
-
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
-
uv
Returns the value of theuv
record component.- Returns:
- the value of the
uv
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-