Interface UnbakedModelLoader<T extends UnbakedModel>
- All Known Implementing Classes:
ObjLoader,UnbakedCompositeModel.Loader
public interface UnbakedModelLoader<T extends UnbakedModel>
A loader for custom unbaked models.
If you do any caching, you should implement ResourceManagerReloadListener and register it with
AddClientReloadListenersEvent.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionread(JsonObject jsonObject, JsonDeserializationContext deserializationContext) Reads an unbaked model from the passed JSON object.
-
Method Details
-
read
T read(JsonObject jsonObject, JsonDeserializationContext deserializationContext) throws JsonParseException Reads an unbaked model from the passed JSON object.The
JsonDeserializationContextargument can be used to deserialize types that the system already understands. For example,deserializationContext.deserialize(<sub object>, Transformation.class)to parse a transformation, ordeserializationContext.deserialize(<sub object>, UnbakedModel.class)to parse a nested model. The set of supported types can be found in the declaration ofBlockModel.GSON.- Throws:
JsonParseException
-