Record Class ModelVariant

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant
Record Components:
modelLocation -
modelState -
weight -

@Environment(CLIENT) public record ModelVariant(Identifier modelLocation, ModelVariant.class_10803 modelState, int weight) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelVariant
intermediary net/minecraft/class_813
official gsh
named modelLocation
intermediary comp_3379
official b
named modelState
intermediary comp_3754
official c
named weight
intermediary comp_3382
official d
  • Field Details

    • modelLocation

      private final Identifier modelLocation
      The field for the modelLocation record component.
    • modelState

      private final ModelVariant.class_10803 modelState
      The field for the modelState record component.
    • weight

      private final int weight
      The field for the weight record component.
    • field_56933

      public static final com.mojang.serialization.Codec<ModelVariant> field_56933
      Mappings:
      Namespace Name Mixin selector
      named field_56933 Lnet/minecraft/client/render/model/json/ModelVariant;field_56933:Lcom/mojang/serialization/Codec;
      intermediary field_56933 Lnet/minecraft/class_813;field_56933:Lcom/mojang/serialization/Codec;
      official a Lgsh;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • ModelVariant

      public ModelVariant(Identifier identifier)
    • ModelVariant

      public ModelVariant(Identifier location, ModelVariant.class_10803 class_10803, int int2)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelVariant;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/render/model/json/ModelVariant$class_10803;I)V
      intermediary <init> Lnet/minecraft/class_813;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_813$class_10803;I)V
      official <init> Lgsh;<init>(Lalg;Lgsh$a;I)V
  • Method Details

    • method_67940

      public ModelVariant method_67940(Rotation rotation)
      Mappings:
      Namespace Name Mixin selector
      named method_67940 Lnet/minecraft/client/render/model/json/ModelVariant;method_67940(Lnet/minecraft/util/math/Rotation;)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67940 Lnet/minecraft/class_813;method_67940(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813;
      official a Lgsh;a(Li;)Lgsh;
    • method_67942

      public ModelVariant method_67942(Rotation rotation)
      Mappings:
      Namespace Name Mixin selector
      named method_67942 Lnet/minecraft/client/render/model/json/ModelVariant;method_67942(Lnet/minecraft/util/math/Rotation;)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67942 Lnet/minecraft/class_813;method_67942(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813;
      official b Lgsh;b(Li;)Lgsh;
    • method_67941

      public ModelVariant method_67941(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_67941 Lnet/minecraft/client/render/model/json/ModelVariant;method_67941(Z)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67941 Lnet/minecraft/class_813;method_67941(Z)Lnet/minecraft/class_813;
      official a Lgsh;a(Z)Lgsh;
    • method_67936

      public ModelVariant method_67936(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named method_67936 Lnet/minecraft/client/render/model/json/ModelVariant;method_67936(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67936 Lnet/minecraft/class_813;method_67936(Lnet/minecraft/class_2960;)Lnet/minecraft/class_813;
      official a Lgsh;a(Lalg;)Lgsh;
    • method_67938

      public ModelVariant method_67938(ModelVariant.class_10803 class_10803)
      Mappings:
      Namespace Name Mixin selector
      named method_67938 Lnet/minecraft/client/render/model/json/ModelVariant;method_67938(Lnet/minecraft/client/render/model/json/ModelVariant$class_10803;)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67938 Lnet/minecraft/class_813;method_67938(Lnet/minecraft/class_813$class_10803;)Lnet/minecraft/class_813;
      official a Lgsh;a(Lgsh$a;)Lgsh;
    • method_67935

      public ModelVariant method_67935(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_67935 Lnet/minecraft/client/render/model/json/ModelVariant;method_67935(I)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67935 Lnet/minecraft/class_813;method_67935(I)Lnet/minecraft/class_813;
      official a Lgsh;a(I)Lgsh;
    • method_67939

      public ModelVariant method_67939(class_10804 class_10804)
      Mappings:
      Namespace Name Mixin selector
      named method_67939 Lnet/minecraft/client/render/model/json/ModelVariant;method_67939(Lnet/minecraft/class_10804;)Lnet/minecraft/client/render/model/json/ModelVariant;
      intermediary method_67939 Lnet/minecraft/class_813;method_67939(Lnet/minecraft/class_10804;)Lnet/minecraft/class_813;
      official a Lgsh;a(Lgsi;)Lgsh;
    • toString

      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

      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

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modelLocation

      public Identifier modelLocation()
      Returns the value of the modelLocation record component.
      Returns:
      the value of the modelLocation record component
    • modelState

      public ModelVariant.class_10803 modelState()
      Returns the value of the modelState record component.
      Returns:
      the value of the modelState record component
    • weight

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