@Environment(value=CLIENT) public static class JsonUnbakedModel.Deserializer extends Object implements JsonDeserializer<JsonUnbakedModel>
Constructor and Description |
---|
Deserializer() |
Modifier and Type | Method and Description |
---|---|
JsonUnbakedModel |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
protected boolean |
deserializeAmbientOcclusion(JsonObject json) |
protected List<ModelElement> |
deserializeElements(JsonDeserializationContext context,
JsonObject json) |
protected List<ModelOverride> |
deserializeOverrides(JsonDeserializationContext context,
JsonObject object) |
private String |
deserializeParent(JsonObject json) |
private Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>> |
deserializeTextures(JsonObject object) |
private static com.mojang.datafixers.util.Either<SpriteIdentifier,String> |
resolveReference(Identifier id,
String name) |
public JsonUnbakedModel deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<JsonUnbakedModel>
JsonParseException
protected List<ModelOverride> deserializeOverrides(JsonDeserializationContext context, JsonObject object)
private Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>> deserializeTextures(JsonObject object)
private static com.mojang.datafixers.util.Either<SpriteIdentifier,String> resolveReference(Identifier id, String name)
private String deserializeParent(JsonObject json)
protected boolean deserializeAmbientOcclusion(JsonObject json)
protected List<ModelElement> deserializeElements(JsonDeserializationContext context, JsonObject json)