Record Class ModelElementFace
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelElementFace
- Record Components:
cullFace-tintIndex-textureId-uvs-rotation-
@Environment(CLIENT)
public record ModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementFace.UV uvs, AxisRotation rotation)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelElementFaceintermediary net/minecraft/class_783official gsvnamed cullFaceintermediary comp_2867official bnamed tintIndexintermediary comp_2868official cnamed textureIdintermediary comp_2869official dnamed uvsintermediary comp_3733official enamed rotationintermediary comp_3734official f
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecullFacerecord component.static final intprivate final AxisRotationThe field for therotationrecord component.private final StringThe field for thetextureIdrecord component.private final intThe field for thetintIndexrecord component.private final ModelElementFace.UVThe field for theuvsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, @Nullable ModelElementFace.UV textureData, AxisRotation axisRotation) -
Method Summary
Modifier and TypeMethodDescriptioncullFace()Returns the value of thecullFacerecord component.final booleanIndicates whether some other object is "equal to" this one.static floatgetUValue(ModelElementFace.UV uV, AxisRotation axisRotation, int int2) static floatgetVValue(ModelElementFace.UV uV, AxisRotation axisRotation, int int2) final inthashCode()Returns a hash code value for this object.rotation()Returns the value of therotationrecord component.Returns the value of thetextureIdrecord component.intReturns the value of thetintIndexrecord component.final StringtoString()Returns a string representation of this record class.uvs()Returns the value of theuvsrecord component.
-
Field Details
-
cullFace
The field for thecullFacerecord component. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
textureId
The field for thetextureIdrecord component. -
uvs
The field for theuvsrecord component. -
rotation
The field for therotationrecord 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 aLgsv;a:I
-
-
Constructor Details
-
ModelElementFace
public ModelElementFace(@Nullable @Nullable Direction cullFace, int tintIndex, String textureId, @Nullable @Nullable ModelElementFace.UV textureData, AxisRotation axisRotation) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelElementFace;<init>(Lnet/minecraft/util/math/Direction;ILjava/lang/String;Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;)Vintermediary <init>Lnet/minecraft/class_783;<init>(Lnet/minecraft/class_2350;ILjava/lang/String;Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;)Vofficial <init>Lgsv;<init>(Ljc;ILjava/lang/String;Lgsv$b;Li;)V
-
-
Method Details
-
getUValue
- Mappings:
Namespace Name Mixin selector named getUValueLnet/minecraft/client/render/model/json/ModelElementFace;getUValue(Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;I)Fintermediary method_67909Lnet/minecraft/class_783;method_67909(Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;I)Fofficial aLgsv;a(Lgsv$b;Li;I)F
-
getVValue
- Mappings:
Namespace Name Mixin selector named getVValueLnet/minecraft/client/render/model/json/ModelElementFace;getVValue(Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;I)Fintermediary method_67910Lnet/minecraft/class_783;method_67910(Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;I)Fofficial bLgsv;b(Lgsv$b;Li;I)F
-
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
-
uvs
Returns the value of theuvsrecord component.- Returns:
- the value of the
uvsrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-