@FunctionalInterface public interface ExtraModelProvider
Modifier and Type | Method and Description |
---|---|
void |
provideExtraModels(net.minecraft.resource.ResourceManager manager,
Consumer<net.minecraft.util.Identifier> out)
Provides an opportunity inform the game that you would like it to load and bake a model,
even if that model is not used by any blocks or items.
|
void provideExtraModels(net.minecraft.resource.ResourceManager manager, Consumer<net.minecraft.util.Identifier> out)
out
- Accepts paths to be loaded. Arguments that are ModelIdentifier
will be
loaded through the blockstate JSON system or, if the variant is inventory
, the item model folder.
Otherwise, the argument is directly loaded as a JSON.
For example, new Identifier("mymod", "foo/bar")will request loading of the file
/assets/mymod/models/foo/bar.json