Class ModelVariantMap

java.lang.Object
net.minecraft.client.render.model.json.ModelVariantMap

@Environment(CLIENT) public class ModelVariantMap extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelVariantMap
intermediary net/minecraft/class_790
official gmx
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/json/ModelVariantMap;LOGGER:Lorg/slf4j/Logger;
      intermediary field_53162 Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;
      official b Lgmx;b:Lorg/slf4j/Logger;
    • GSON

      public static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/client/render/model/json/ModelVariantMap;GSON:Lcom/google/gson/Gson;
      intermediary field_53161 Lnet/minecraft/class_790;field_53161:Lcom/google/gson/Gson;
      official a Lgmx;a:Lcom/google/gson/Gson;
    • variantMap

      private final Map<String,WeightedUnbakedModel> variantMap
      Mappings:
      Namespace Name Mixin selector
      named variantMap Lnet/minecraft/client/render/model/json/ModelVariantMap;variantMap:Ljava/util/Map;
      intermediary field_4241 Lnet/minecraft/class_790;field_4241:Ljava/util/Map;
      official c Lgmx;c:Ljava/util/Map;
    • multipartModel

      @Nullable private final MultipartUnbakedModel.Serialized multipartModel
      Mappings:
      Namespace Name Mixin selector
      named multipartModel Lnet/minecraft/client/render/model/json/ModelVariantMap;multipartModel:Lnet/minecraft/client/render/model/MultipartUnbakedModel$Serialized;
      intermediary field_4240 Lnet/minecraft/class_790;field_4240:Lnet/minecraft/class_816$class_9982;
      official d Lgmx;d:Lgnk$b;
  • Constructor Details

    • ModelVariantMap

      public ModelVariantMap(Map<String,WeightedUnbakedModel> variantMap, @Nullable MultipartUnbakedModel.Serialized multipartModel)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelVariantMap;<init>(Ljava/util/Map;Lnet/minecraft/client/render/model/MultipartUnbakedModel$Serialized;)V
      intermediary <init> Lnet/minecraft/class_790;<init>(Ljava/util/Map;Lnet/minecraft/class_816$class_9982;)V
      official <init> Lgmx;<init>(Ljava/util/Map;Lgnk$b;)V
  • Method Details

    • fromJson

      public static ModelVariantMap fromJson(Reader reader)
      Mappings:
      Namespace Name Mixin selector
      named fromJson Lnet/minecraft/client/render/model/json/ModelVariantMap;fromJson(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/ModelVariantMap;
      intermediary method_3424 Lnet/minecraft/class_790;method_3424(Ljava/io/Reader;)Lnet/minecraft/class_790;
      official a Lgmx;a(Ljava/io/Reader;)Lgmx;
    • fromJson

      public static ModelVariantMap fromJson(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      named fromJson Lnet/minecraft/client/render/model/json/ModelVariantMap;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/client/render/model/json/ModelVariantMap;
      intermediary method_45787 Lnet/minecraft/class_790;method_45787(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_790;
      official a Lgmx;a(Lcom/google/gson/JsonElement;)Lgmx;
    • getVariant

      public WeightedUnbakedModel getVariant(String key)
      Finds and returns the definition of the variant under the key. If the key does not
      invalid reference
      exist
      , this throws an exception.
      Parameters:
      key - the variant's key
      Returns:
      the variant definition
      Throws:
      ModelVariantMap.VariantAbsentException - if no variant with the given key exists
      Mappings:
      Namespace Name Mixin selector
      named getVariant Lnet/minecraft/client/render/model/json/ModelVariantMap;getVariant(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;
      intermediary method_35792 Lnet/minecraft/class_790;method_35792(Ljava/lang/String;)Lnet/minecraft/class_807;
      official a Lgmx;a(Ljava/lang/String;)Lgnd;
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAllModels

      public Set<WeightedUnbakedModel> getAllModels()
      Mappings:
      Namespace Name Mixin selector
      named getAllModels Lnet/minecraft/client/render/model/json/ModelVariantMap;getAllModels()Ljava/util/Set;
      intermediary method_35791 Lnet/minecraft/class_790;method_35791()Ljava/util/Set;
      official a Lgmx;a()Ljava/util/Set;
    • getMultipartModel

      @Nullable public MultipartUnbakedModel.Serialized getMultipartModel()
      Mappings:
      Namespace Name Mixin selector
      named getMultipartModel Lnet/minecraft/client/render/model/json/ModelVariantMap;getMultipartModel()Lnet/minecraft/client/render/model/MultipartUnbakedModel$Serialized;
      intermediary method_3421 Lnet/minecraft/class_790;method_3421()Lnet/minecraft/class_816$class_9982;
      official b Lgmx;b()Lgnk$b;
    • parse

      public Map<BlockState,GroupableModel> parse(StateManager<Block,BlockState> stateManager, String path)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/render/model/json/ModelVariantMap;parse(Lnet/minecraft/state/StateManager;Ljava/lang/String;)Ljava/util/Map;
      intermediary method_62327 Lnet/minecraft/class_790;method_62327(Lnet/minecraft/class_2689;Ljava/lang/String;)Ljava/util/Map;
      official a Lgmx;a(Ldxv;Ljava/lang/String;)Ljava/util/Map;