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 ForgeFaceData data)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thecullForDirectionrecord component.private final ForgeFaceDataThe field for thedatarecord component.static final intprivate final StringThe field for thetexturerecord component.private final intThe field for thetintIndexrecord component.private final BlockFaceUVThe field for theuvrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockElementFace(Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv) BlockElementFace(Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, ForgeFaceData data) Creates an instance of aBlockElementFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecullForDirectionrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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. -
data
The field for thedatarecord component. -
NO_TINT
public static final int NO_TINT- See Also:
-
-
Constructor Details
-
BlockElementFace
public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv) -
BlockElementFace
public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, @Nullable ForgeFaceData data) 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 componentdata- the value for thedatarecord component
-
-
Method Details
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord 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
-