Class JsonUnbakedModel.Deserializer

java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel.Deserializer
All Implemented Interfaces:
JsonDeserializer<JsonUnbakedModel>
Enclosing class:
JsonUnbakedModel

@Environment(CLIENT) public static class JsonUnbakedModel.Deserializer extends Object implements JsonDeserializer<JsonUnbakedModel>
Mappings:
Namespace Name
official eog$a
intermediary net/minecraft/class_793$class_795
named net/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer
  • Field Details

    • DEFAULT_AMBIENT_OCCLUSION

      private static final boolean DEFAULT_AMBIENT_OCCLUSION
      The default value for ambient occlusion if unspecified in JSON; is true.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leog$a;a:Z
      intermediary field_32794 Lnet/minecraft/class_793$class_795;field_32794:Z
      named DEFAULT_AMBIENT_OCCLUSION Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;DEFAULT_AMBIENT_OCCLUSION:Z
  • Constructor Details

    • Deserializer

      public Deserializer()
  • Method Details

    • deserialize

      public JsonUnbakedModel deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<JsonUnbakedModel>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Leog$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Leog;
      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(JsonDeserializationContext context, JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      official a Leog$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,String>> texturesFromJson(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      official b Leog$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 Leog$a;a(Lww;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

      private String parentFromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official c Leog$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

      protected boolean ambientOcclusionFromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Leog$a;a(Lcom/google/gson/JsonObject;)Z
      intermediary method_3453 Lnet/minecraft/class_793$class_795;method_3453(Lcom/google/gson/JsonObject;)Z
      named ambientOcclusionFromJson Lnet/minecraft/client/render/model/json/JsonUnbakedModel$Deserializer;ambientOcclusionFromJson(Lcom/google/gson/JsonObject;)Z
    • elementsFromJson

      protected List<ModelElement> elementsFromJson(JsonDeserializationContext context, JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official b Leog$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;