Interface ModelResolver.Context

Enclosing interface:
ModelResolver

@NonExtendable public static interface ModelResolver.Context
The context for model resolution.
  • Method Details

    • id

      The identifier of the model to be loaded.
    • getOrLoadModel

      UnbakedModel getOrLoadModel(Identifier id)
      Loads a model using an Identifier, or gets it if it was already loaded.
      Parameters:
      id - the model identifier
      Returns:
      the unbaked model, or a missing model if it is not present
    • loader

      ModelLoader loader()
      The current model loader instance, which changes between resource reloads.