Class ModelVariantMap.Deserializer
java.lang.Object
net.minecraft.client.render.model.json.ModelVariantMap.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ModelVariantMap>
- Enclosing class:
ModelVariantMap
@Environment(CLIENT)
public static class ModelVariantMap.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<ModelVariantMap>
- Mappings:
Namespace Name official fph$b
intermediary net/minecraft/class_790$class_792
named net/minecraft/client/render/model/json/ModelVariantMap$Deserializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) protected @Nullable MultipartUnbakedModel
multipartFromJson
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) protected Map<String,
WeightedUnbakedModel> variantsFromJson
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public ModelVariantMap deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ModelVariantMap>
- Throws:
com.google.gson.JsonParseException
- Mappings:
Namespace Name Mixin selector official a
Lfph$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lfph;
intermediary method_3428
Lnet/minecraft/class_790$class_792;method_3428(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_790;
named deserialize
Lnet/minecraft/client/render/model/json/ModelVariantMap$Deserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/render/model/json/ModelVariantMap;
-
variantsFromJson
protected Map<String,WeightedUnbakedModel> variantsFromJson(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official a
Lfph$b;a(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
intermediary method_3429
Lnet/minecraft/class_790$class_792;method_3429(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
named variantsFromJson
Lnet/minecraft/client/render/model/json/ModelVariantMap$Deserializer;variantsFromJson(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
-
multipartFromJson
@Nullable protected @Nullable MultipartUnbakedModel multipartFromJson(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official b
Lfph$b;b(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Lfpt;
intermediary method_3427
Lnet/minecraft/class_790$class_792;method_3427(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_816;
named multipartFromJson
Lnet/minecraft/client/render/model/json/ModelVariantMap$Deserializer;multipartFromJson(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Lnet/minecraft/client/render/model/MultipartUnbakedModel;
-