Class ModelVariantMap
java.lang.Object
net.minecraft.client.render.model.json.ModelVariantMap
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelVariantMap
intermediary net/minecraft/class_790
official gmx
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static class
An unchecked exception indicating a variant is not found with a string key. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Gson
private static final Logger
private final MultipartUnbakedModel.Serialized
private final Map
<String, WeightedUnbakedModel> -
Constructor Summary
ConstructorDescriptionModelVariantMap
(Map<String, WeightedUnbakedModel> variantMap, MultipartUnbakedModel.Serialized multipartModel) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ModelVariantMap
fromJson
(JsonElement json) static ModelVariantMap
getVariant
(String key) Finds and returns the definition of the variant under thekey
.int
hashCode()
parse
(StateManager<Block, BlockState> stateManager, String path)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
Finds and returns the definition of the variant under thekey
. If thekey
does notinvalid reference
exist
- Parameters:
key
- the variant's key- Returns:
- the variant definition
- Throws:
ModelVariantMap.VariantAbsentException
- if no variant with the givenkey
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
-
hashCode
public int hashCode() -
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
- 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;
-