Interface ExtraModelProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
provideExtraModels
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.- Parameters:
out
- Accepts paths to be loaded. Arguments that areModelIdentifier
will be loaded through the blockstate JSON system or, if the variant isinventory
, 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
-