Class ModelVariant

java.lang.Object
net.minecraft.client.render.model.json.ModelVariant
All Implemented Interfaces:
ModelBakeSettings

@Environment(CLIENT) public class ModelVariant extends Object implements ModelBakeSettings
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelVariant
intermediary net/minecraft/class_813
official gfa
  • Field Details

    • location

      private final Identifier location
      Mappings:
      Namespace Name Mixin selector
      named location Lnet/minecraft/client/render/model/json/ModelVariant;location:Lnet/minecraft/util/Identifier;
      intermediary field_4326 Lnet/minecraft/class_813;field_4326:Lnet/minecraft/class_2960;
      official a Lgfa;a:Lalf;
    • rotation

      private final AffineTransformation rotation
      Mappings:
      Namespace Name Mixin selector
      named rotation Lnet/minecraft/client/render/model/json/ModelVariant;rotation:Lnet/minecraft/util/math/AffineTransformation;
      intermediary field_4328 Lnet/minecraft/class_813;field_4328:Lnet/minecraft/class_4590;
      official b Lgfa;b:Lj;
    • uvLock

      private final boolean uvLock
      Mappings:
      Namespace Name Mixin selector
      named uvLock Lnet/minecraft/client/render/model/json/ModelVariant;uvLock:Z
      intermediary field_4327 Lnet/minecraft/class_813;field_4327:Z
      official c Lgfa;c:Z
    • weight

      private final int weight
      Mappings:
      Namespace Name Mixin selector
      named weight Lnet/minecraft/client/render/model/json/ModelVariant;weight:I
      intermediary field_4325 Lnet/minecraft/class_813;field_4325:I
      official d Lgfa;d:I
  • Constructor Details

    • ModelVariant

      public ModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelVariant;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/math/AffineTransformation;ZI)V
      intermediary <init> Lnet/minecraft/class_813;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_4590;ZI)V
      official <init> Lgfa;<init>(Lalf;Lj;ZI)V
  • Method Details

    • getLocation

      public Identifier getLocation()
      Mappings:
      Namespace Name Mixin selector
      named getLocation Lnet/minecraft/client/render/model/json/ModelVariant;getLocation()Lnet/minecraft/util/Identifier;
      intermediary method_3510 Lnet/minecraft/class_813;method_3510()Lnet/minecraft/class_2960;
      official a Lgfa;a()Lalf;
    • getRotation

      public AffineTransformation getRotation()
      Specified by:
      getRotation in interface ModelBakeSettings
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/client/render/model/ModelBakeSettings;getRotation()Lnet/minecraft/util/math/AffineTransformation;
      intermediary method_3509 Lnet/minecraft/class_3665;method_3509()Lnet/minecraft/class_4590;
      official b Lgrj;b()Lj;
    • isUvLocked

      public boolean isUvLocked()
      Specified by:
      isUvLocked in interface ModelBakeSettings
      Mappings:
      Namespace Name Mixin selector
      named isUvLocked Lnet/minecraft/client/render/model/ModelBakeSettings;isUvLocked()Z
      intermediary method_3512 Lnet/minecraft/class_3665;method_3512()Z
      official c Lgrj;c()Z
    • getWeight

      public int getWeight()
      Mappings:
      Namespace Name Mixin selector
      named getWeight Lnet/minecraft/client/render/model/json/ModelVariant;getWeight()I
      intermediary method_3511 Lnet/minecraft/class_813;method_3511()I
      official d Lgfa;d()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/client/render/model/json/ModelVariant;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_813;equals(Ljava/lang/Object;)Z
      official equals Lgfa;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object