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 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, or deserializationContext.deserialize(<sub object>, UnbakedModel.class) to parse a nested model. The set of supported types can be found in the declaration of BlockModel.GSON.

      Specified by:
      read in interface UnbakedModelLoader<NewModelLoaderTest.TestModel>
      Throws:
      com.google.gson.JsonParseException