@Environment(value=CLIENT) public static class ModelVariantMap.Deserializer extends Object implements JsonDeserializer<ModelVariantMap>
Constructor and Description |
---|
Deserializer() |
Modifier and Type | Method and Description |
---|---|
ModelVariantMap |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
protected MultipartUnbakedModel |
deserializeMultipart(JsonDeserializationContext context,
JsonObject object) |
protected Map<String,WeightedUnbakedModel> |
deserializeVariants(JsonDeserializationContext context,
JsonObject object) |
public ModelVariantMap deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<ModelVariantMap>
JsonParseException
protected Map<String,WeightedUnbakedModel> deserializeVariants(JsonDeserializationContext context, JsonObject object)
@Nullable protected MultipartUnbakedModel deserializeMultipart(JsonDeserializationContext context, JsonObject object)