Record Class ModelElement
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelElement
- Record Components:
from-to-faces-rotation-shade-lightEmission-
@Environment(CLIENT)
public record ModelElement(Vector3fc from, Vector3fc to, Map<Direction,ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade, int lightEmission)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelElementintermediary net/minecraft/class_785official gsunamed fromintermediary comp_3727official anamed tointermediary comp_3728official bnamed facesintermediary comp_3729official cnamed rotationintermediary comp_3730official dnamed shadeintermediary comp_3731official enamed lightEmissionintermediary comp_3732official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Direction, ModelElementFace> The field for thefacesrecord component.private static final booleanprivate static final floatprivate static final floatprivate final Vector3fcThe field for thefromrecord component.private final intThe field for thelightEmissionrecord component.private final @Nullable ModelRotationThe field for therotationrecord component.private final booleanThe field for theshaderecord component.private final Vector3fcThe field for thetorecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelElement(Vector3fc vector3fc, Vector3fc vector3fc2, Map<Direction, ModelElementFace> faces) ModelElement(Vector3fc vector3fc, Vector3fc vector3fc2, Map<Direction, ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade, int lightEmission) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.faces()Returns the value of thefacesrecord component.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightEmissionrecord component.rotation()Returns the value of therotationrecord component.booleanshade()Returns the value of theshaderecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
from
The field for thefromrecord component. -
to
The field for thetorecord component. -
faces
The field for thefacesrecord component. -
rotation
The field for therotationrecord component. -
shade
private final boolean shadeThe field for theshaderecord component. -
lightEmission
private final int lightEmissionThe field for thelightEmissionrecord component. -
field_32785
private static final boolean field_32785- See Also:
- Mappings:
Namespace Name Mixin selector named field_32785Lnet/minecraft/client/render/model/json/ModelElement;field_32785:Zintermediary field_32785Lnet/minecraft/class_785;field_32785:Zofficial gLgsu;g:Z
-
field_32786
private static final float field_32786- See Also:
- Mappings:
Namespace Name Mixin selector named field_32786Lnet/minecraft/client/render/model/json/ModelElement;field_32786:Fintermediary field_32786Lnet/minecraft/class_785;field_32786:Fofficial hLgsu;h:F
-
field_32787
private static final float field_32787- See Also:
- Mappings:
Namespace Name Mixin selector named field_32787Lnet/minecraft/client/render/model/json/ModelElement;field_32787:Fintermediary field_32787Lnet/minecraft/class_785;field_32787:Fofficial iLgsu;i:F
-
-
Constructor Details
-
ModelElement
public ModelElement(Vector3fc vector3fc, Vector3fc vector3fc2, Map<Direction, ModelElementFace> faces) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelElement;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_785;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;)Vofficial <init>Lgsu;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;)V
-
ModelElement
public ModelElement(Vector3fc vector3fc, Vector3fc vector3fc2, Map<Direction, ModelElementFace> faces, @Nullable @Nullable ModelRotation rotation, boolean shade, int lightEmission) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelElement;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;Lnet/minecraft/client/render/model/json/ModelRotation;ZI)Vintermediary <init>Lnet/minecraft/class_785;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;Lnet/minecraft/class_789;ZI)Vofficial <init>Lgsu;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;Lgsw;ZI)V
-
-
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 '=='. -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
faces
Returns the value of thefacesrecord component.- Returns:
- the value of the
facesrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
shade
public boolean shade()Returns the value of theshaderecord component.- Returns:
- the value of the
shaderecord component
-
lightEmission
public int lightEmission()Returns the value of thelightEmissionrecord component.- Returns:
- the value of the
lightEmissionrecord component
-