Record Class ModelElementFace
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelElementFace
- Record Components:
cullFace-tintIndex-textureId-textureData-
@Environment(CLIENT)
public record ModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelElementFaceintermediary net/minecraft/class_783official gfynamed cullFaceintermediary comp_2867official bnamed tintIndexintermediary comp_2868official cnamed textureIdintermediary comp_2869official dnamed textureDataintermediary comp_2870official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecullFacerecord component.static final intprivate final ModelElementTextureThe field for thetextureDatarecord component.private final StringThe field for thetextureIdrecord component.private final intThe field for thetintIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) Creates an instance of aModelElementFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncullFace()Returns the value of thecullFacerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetextureDatarecord component.Returns the value of thetextureIdrecord component.intReturns the value of thetintIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cullFace
The field for thecullFacerecord component. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
textureId
The field for thetextureIdrecord component. -
textureData
The field for thetextureDatarecord component. -
field_32789
public static final int field_32789- See Also:
- Mappings:
Namespace Name Mixin selector named field_32789Lnet/minecraft/client/render/model/json/ModelElementFace;field_32789:Iintermediary field_32789Lnet/minecraft/class_783;field_32789:Iofficial aLgfy;a:I
-
-
Constructor Details
-
ModelElementFace
public ModelElementFace(@Nullable @Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) Creates an instance of aModelElementFacerecord class.- Parameters:
cullFace- the value for thecullFacerecord componenttintIndex- the value for thetintIndexrecord componenttextureId- the value for thetextureIdrecord componenttextureData- the value for thetextureDatarecord component
-
-
Method Details
-
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 '=='. -
cullFace
Returns the value of thecullFacerecord component.- Returns:
- the value of the
cullFacerecord component
-
tintIndex
public int tintIndex()Returns the value of thetintIndexrecord component.- Returns:
- the value of the
tintIndexrecord component
-
textureId
Returns the value of thetextureIdrecord component.- Returns:
- the value of the
textureIdrecord component
-
textureData
Returns the value of thetextureDatarecord component.- Returns:
- the value of the
textureDatarecord component
-