Class ModelVariantMap
java.lang.Object
net.minecraft.client.render.model.json.ModelVariantMap
- Mappings:
Namespace Name official fas
intermediary net/minecraft/class_790
named net/minecraft/client/render/model/json/ModelVariantMap
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
protected class
An unchecked exception indicating a variant is not found with a string key. -
Field Summary
Modifier and TypeFieldDescriptionprivate MultipartUnbakedModel
private final Map<String,
WeightedUnbakedModel> -
Constructor Summary
ConstructorDescriptionModelVariantMap
(List<ModelVariantMap> variantMapList) ModelVariantMap
(Map<String, WeightedUnbakedModel> variantMap, MultipartUnbakedModel multipartModel) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVariant
(String key) Checks if there's a variant under thekey
in this map.boolean
static ModelVariantMap
fromJson
(ModelVariantMap.DeserializationContext context, Reader reader) getVariant
(String key) Finds and returns the definition of the variant under thekey
.int
hashCode()
boolean
-
Field Details
-
variantMap
- Mappings:
Namespace Name Mixin selector official a
Lfas;a:Ljava/util/Map;
intermediary field_4241
Lnet/minecraft/class_790;field_4241:Ljava/util/Map;
named variantMap
Lnet/minecraft/client/render/model/json/ModelVariantMap;variantMap:Ljava/util/Map;
-
multipartModel
- Mappings:
Namespace Name Mixin selector official b
Lfas;b:Lfbe;
intermediary field_4240
Lnet/minecraft/class_790;field_4240:Lnet/minecraft/class_816;
named multipartModel
Lnet/minecraft/client/render/model/json/ModelVariantMap;multipartModel:Lnet/minecraft/client/render/model/MultipartUnbakedModel;
-
-
Constructor Details
-
ModelVariantMap
public ModelVariantMap(Map<String, WeightedUnbakedModel> variantMap, MultipartUnbakedModel multipartModel) - Mappings:
Namespace Name Mixin selector official <init>
Lfas;<init>(Ljava/util/Map;Lfbe;)V
intermediary <init>
Lnet/minecraft/class_790;<init>(Ljava/util/Map;Lnet/minecraft/class_816;)V
named <init>
Lnet/minecraft/client/render/model/json/ModelVariantMap;<init>(Ljava/util/Map;Lnet/minecraft/client/render/model/MultipartUnbakedModel;)V
-
ModelVariantMap
- Mappings:
Namespace Name Mixin selector official <init>
Lfas;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_790;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/client/render/model/json/ModelVariantMap;<init>(Ljava/util/List;)V
-
-
Method Details
-
fromJson
public static ModelVariantMap fromJson(ModelVariantMap.DeserializationContext context, Reader reader) - Mappings:
Namespace Name Mixin selector official a
Lfas;a(Lfas$a;Ljava/io/Reader;)Lfas;
intermediary method_3424
Lnet/minecraft/class_790;method_3424(Lnet/minecraft/class_790$class_791;Ljava/io/Reader;)Lnet/minecraft/class_790;
named fromJson
Lnet/minecraft/client/render/model/json/ModelVariantMap;fromJson(Lnet/minecraft/client/render/model/json/ModelVariantMap$DeserializationContext;Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/ModelVariantMap;
-
containsVariant
Checks if there's a variant under thekey
in this map.- Parameters:
key
- the variant's key- Returns:
true
if thekey
has a variant,false
otherwise- Mappings:
Namespace Name Mixin selector official a
Lfas;a(Ljava/lang/String;)Z
intermediary method_35790
Lnet/minecraft/class_790;method_35790(Ljava/lang/String;)Z
named containsVariant
Lnet/minecraft/client/render/model/json/ModelVariantMap;containsVariant(Ljava/lang/String;)Z
-
getVariant
Finds and returns the definition of the variant under thekey
. If thekey
does not exist, this throws an exception.- 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 official b
Lfas;b(Ljava/lang/String;)Lfaz;
intermediary method_35792
Lnet/minecraft/class_790;method_35792(Ljava/lang/String;)Lnet/minecraft/class_807;
named getVariant
Lnet/minecraft/client/render/model/json/ModelVariantMap;getVariant(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;
-
equals
-
hashCode
public int hashCode() -
getVariantMap
- Mappings:
Namespace Name Mixin selector official a
Lfas;a()Ljava/util/Map;
intermediary method_3423
Lnet/minecraft/class_790;method_3423()Ljava/util/Map;
named getVariantMap
Lnet/minecraft/client/render/model/json/ModelVariantMap;getVariantMap()Ljava/util/Map;
-
getAllModels
- Mappings:
Namespace Name Mixin selector official b
Lfas;b()Ljava/util/Set;
intermediary method_35791
Lnet/minecraft/class_790;method_35791()Ljava/util/Set;
named getAllModels
Lnet/minecraft/client/render/model/json/ModelVariantMap;getAllModels()Ljava/util/Set;
-
hasMultipartModel
public boolean hasMultipartModel()- Mappings:
Namespace Name Mixin selector official c
Lfas;c()Z
intermediary method_3422
Lnet/minecraft/class_790;method_3422()Z
named hasMultipartModel
Lnet/minecraft/client/render/model/json/ModelVariantMap;hasMultipartModel()Z
-
getMultipartModel
- Mappings:
Namespace Name Mixin selector official d
Lfas;d()Lfbe;
intermediary method_3421
Lnet/minecraft/class_790;method_3421()Lnet/minecraft/class_816;
named getMultipartModel
Lnet/minecraft/client/render/model/json/ModelVariantMap;getMultipartModel()Lnet/minecraft/client/render/model/MultipartUnbakedModel;
-