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/ModelElementFace
intermediary net/minecraft/class_783
official gmt
named cullFace
intermediary comp_2867
official b
named tintIndex
intermediary comp_2868
official c
named textureId
intermediary comp_2869
official d
named textureData
intermediary comp_2870
official e
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thecullFace
record component.static final int
private final ModelElementTexture
The field for thetextureData
record component.private final String
The field for thetextureId
record component.private final int
The field for thetintIndex
record component. -
Constructor Summary
ConstructorDescriptionModelElementFace
(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) Creates an instance of aModelElementFace
record class. -
Method Summary
Modifier and TypeMethodDescriptioncullFace()
Returns the value of thecullFace
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetextureData
record component.Returns the value of thetextureId
record component.int
Returns the value of thetintIndex
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
cullFace
The field for thecullFace
record component. -
tintIndex
private final int tintIndexThe field for thetintIndex
record component. -
textureId
The field for thetextureId
record component. -
textureData
The field for thetextureData
record component. -
field_32789
public static final int field_32789- See Also:
- Mappings:
Namespace Name Mixin selector named field_32789
Lnet/minecraft/client/render/model/json/ModelElementFace;field_32789:I
intermediary field_32789
Lnet/minecraft/class_783;field_32789:I
official a
Lgmt;a:I
-
-
Constructor Details
-
ModelElementFace
public ModelElementFace(@Nullable @Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) Creates an instance of aModelElementFace
record class.- Parameters:
cullFace
- the value for thecullFace
record componenttintIndex
- the value for thetintIndex
record componenttextureId
- the value for thetextureId
record componenttextureData
- the value for thetextureData
record 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 thecullFace
record component.- Returns:
- the value of the
cullFace
record component
-
tintIndex
public int tintIndex()Returns the value of thetintIndex
record component.- Returns:
- the value of the
tintIndex
record component
-
textureId
Returns the value of thetextureId
record component.- Returns:
- the value of the
textureId
record component
-
textureData
Returns the value of thetextureData
record component.- Returns:
- the value of the
textureData
record component
-