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/ModelElement
intermediary net/minecraft/class_785
official gsu
named from
intermediary comp_3727
official a
named to
intermediary comp_3728
official b
named faces
intermediary comp_3729
official c
named rotation
intermediary comp_3730
official d
named shade
intermediary comp_3731
official e
named lightEmission
intermediary comp_3732
official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<Direction, ModelElementFace> The field for thefaces
record component.private static final boolean
private static final float
private static final float
private final Vector3fc
The field for thefrom
record component.private final int
The field for thelightEmission
record component.private final @Nullable ModelRotation
The field for therotation
record component.private final boolean
The field for theshade
record component.private final Vector3fc
The field for theto
record 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 boolean
Indicates whether some other object is "equal to" this one.faces()
Returns the value of thefaces
record component.from()
Returns the value of thefrom
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thelightEmission
record component.rotation()
Returns the value of therotation
record component.boolean
shade()
Returns the value of theshade
record component.to()
Returns the value of theto
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
from
The field for thefrom
record component. -
to
The field for theto
record component. -
faces
The field for thefaces
record component. -
rotation
The field for therotation
record component. -
shade
private final boolean shadeThe field for theshade
record component. -
lightEmission
private final int lightEmissionThe field for thelightEmission
record component. -
field_32785
private static final boolean field_32785- See Also:
- Mappings:
Namespace Name Mixin selector named field_32785
Lnet/minecraft/client/render/model/json/ModelElement;field_32785:Z
intermediary field_32785
Lnet/minecraft/class_785;field_32785:Z
official g
Lgsu;g:Z
-
field_32786
private static final float field_32786- See Also:
- Mappings:
Namespace Name Mixin selector named field_32786
Lnet/minecraft/client/render/model/json/ModelElement;field_32786:F
intermediary field_32786
Lnet/minecraft/class_785;field_32786:F
official h
Lgsu;h:F
-
field_32787
private static final float field_32787- See Also:
- Mappings:
Namespace Name Mixin selector named field_32787
Lnet/minecraft/client/render/model/json/ModelElement;field_32787:F
intermediary field_32787
Lnet/minecraft/class_785;field_32787:F
official i
Lgsu;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;)V
intermediary <init>
Lnet/minecraft/class_785;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;)V
official <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)V
intermediary <init>
Lnet/minecraft/class_785;<init>(Lorg/joml/Vector3fc;Lorg/joml/Vector3fc;Ljava/util/Map;Lnet/minecraft/class_789;ZI)V
official <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 thefrom
record component.- Returns:
- the value of the
from
record component
-
to
Returns the value of theto
record component.- Returns:
- the value of the
to
record component
-
faces
Returns the value of thefaces
record component.- Returns:
- the value of the
faces
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
shade
public boolean shade()Returns the value of theshade
record component.- Returns:
- the value of the
shade
record component
-
lightEmission
public int lightEmission()Returns the value of thelightEmission
record component.- Returns:
- the value of the
lightEmission
record component
-