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
  • Field Details Link icon

    • from Link icon

      private final Vector3fc from
      The field for the from record component.
    • to Link icon

      private final Vector3fc to
      The field for the to record component.
    • faces Link icon

      private final Map<Direction,ModelElementFace> faces
      The field for the faces record component.
    • rotation Link icon

      @Nullable private final @Nullable ModelRotation rotation
      The field for the rotation record component.
    • shade Link icon

      private final boolean shade
      The field for the shade record component.
    • lightEmission Link icon

      private final int lightEmission
      The field for the lightEmission record component.
    • field_32785 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

    • ModelElement Link icon

      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 Link icon

      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 Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • from Link icon

      public Vector3fc from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to Link icon

      public Vector3fc to()
      Returns the value of the to record component.
      Returns:
      the value of the to record component
    • faces Link icon

      public Map<Direction,ModelElementFace> faces()
      Returns the value of the faces record component.
      Returns:
      the value of the faces record component
    • rotation Link icon

      @Nullable public @Nullable ModelRotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • shade Link icon

      public boolean shade()
      Returns the value of the shade record component.
      Returns:
      the value of the shade record component
    • lightEmission Link icon

      public int lightEmission()
      Returns the value of the lightEmission record component.
      Returns:
      the value of the lightEmission record component