Class JsonUnbakedModel.Deserializer
java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<JsonUnbakedModel>
- Enclosing class:
JsonUnbakedModel
@Environment(CLIENT)
public static class JsonUnbakedModel.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<JsonUnbakedModel>
- Mappings:
Namespace Name official fpg$a
intermediary net/minecraft/class_793$class_795
named net/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Boolean
ambientOcclusionFromJson
(com.google.gson.JsonObject json) deserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) protected List<ModelElement>
elementsFromJson
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) protected List<ModelOverride>
overridesFromJson
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) private String
parentFromJson
(com.google.gson.JsonObject json) private static com.mojang.datafixers.util.Either<SpriteIdentifier,
String> resolveReference
(Identifier id, String name) private Map<String,
com.mojang.datafixers.util.Either<SpriteIdentifier, String>> texturesFromJson
(com.google.gson.JsonObject object)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public JsonUnbakedModel 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<JsonUnbakedModel>
- Throws:
com.google.gson.JsonParseException
- Mappings:
Namespace Name Mixin selector official a
Lfpg$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lfpg;
intermediary method_3451
Lnet/minecraft/class_793$class_795;method_3451(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_793;
named deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
-
overridesFromJson
protected List<ModelOverride> overridesFromJson(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official a
Lfpg$a;a(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
intermediary method_3452
Lnet/minecraft/class_793$class_795;method_3452(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
named overridesFromJson
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;overridesFromJson(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
-
texturesFromJson
private Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier, texturesFromJsonString>> (com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official b
Lfpg$a;b(Lcom/google/gson/JsonObject;)Ljava/util/Map;
intermediary method_3448
Lnet/minecraft/class_793$class_795;method_3448(Lcom/google/gson/JsonObject;)Ljava/util/Map;
named texturesFromJson
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;texturesFromJson(Lcom/google/gson/JsonObject;)Ljava/util/Map;
-
resolveReference
private static com.mojang.datafixers.util.Either<SpriteIdentifier,String> resolveReference(Identifier id, String name) - Mappings:
Namespace Name Mixin selector official a
Lfpg$a;a(Laew;Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
intermediary method_24079
Lnet/minecraft/class_793$class_795;method_24079(Lnet/minecraft/class_2960;Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
named resolveReference
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;resolveReference(Lnet/minecraft/util/Identifier;Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
-
parentFromJson
- Mappings:
Namespace Name Mixin selector official c
Lfpg$a;c(Lcom/google/gson/JsonObject;)Ljava/lang/String;
intermediary method_3450
Lnet/minecraft/class_793$class_795;method_3450(Lcom/google/gson/JsonObject;)Ljava/lang/String;
named parentFromJson
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;parentFromJson(Lcom/google/gson/JsonObject;)Ljava/lang/String;
-
ambientOcclusionFromJson
- Mappings:
Namespace Name Mixin selector official a
Lfpg$a;a(Lcom/google/gson/JsonObject;)Ljava/lang/Boolean;
intermediary method_3453
Lnet/minecraft/class_793$class_795;method_3453(Lcom/google/gson/JsonObject;)Ljava/lang/Boolean;
named ambientOcclusionFromJson
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;ambientOcclusionFromJson(Lcom/google/gson/JsonObject;)Ljava/lang/Boolean;
-
elementsFromJson
protected List<ModelElement> elementsFromJson(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) - Mappings:
Namespace Name Mixin selector official b
Lfpg$a;b(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
intermediary method_3449
Lnet/minecraft/class_793$class_795;method_3449(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
named elementsFromJson
Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;elementsFromJson(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/List;
-