Class NewModelLoaderTest.TestLoader
java.lang.Object
net.neoforged.neoforge.oldtest.client.model.NewModelLoaderTest.TestLoader
- All Implemented Interfaces:
UnbakedModelLoader<NewModelLoaderTest.TestModel>
- Enclosing class:
NewModelLoaderTest
static class NewModelLoaderTest.TestLoader
extends Object
implements UnbakedModelLoader<NewModelLoaderTest.TestModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext ctx) Reads an unbaked model from the passed JSON object.
-
Constructor Details
-
TestLoader
TestLoader()
-
-
Method Details
-
read
public NewModelLoaderTest.TestModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext ctx) throws com.google.gson.JsonParseException Description copied from interface:UnbakedModelLoader
Reads an unbaked model from the passed JSON object.The
JsonDeserializationContext
argument 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
.- Specified by:
read
in interfaceUnbakedModelLoader<NewModelLoaderTest.TestModel>
- Throws:
com.google.gson.JsonParseException
-