Class VanillaModelProvider
- All Implemented Interfaces:
DataProvider, IModelProviderExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataProvider
DataProvider.Factory<T> -
Field Summary
Fields inherited from class ModelProvider
modIdFields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidregisterModels(BlockModelGenerators blockModels, ItemModelGenerators itemModels) Neo: register the models to be generated.Methods inherited from class ModelProvider
getName, runMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IModelProviderExtension
mcLocation, modLocation
-
Constructor Details
-
VanillaModelProvider
-
-
Method Details
-
registerModels
Description copied from class:ModelProviderNeo: register the models to be generated.- Overrides:
registerModelsin classModelProvider
-
getKnownBlocks
Description copied from class:ModelProviderNeo: Returns a
Streamcontaining all blocks which must have their models/block states generated or empty if none are desired.When using providers for specific
Blockusages, it is best to override this method returning the exact blocks which must be generated, or empty if generating onlyItemmodels.Default implementation generates models for all blocks matching the given
modId.- Overrides:
getKnownBlocksin classModelProvider- See Also:
-
getKnownItems
Description copied from class:ModelProviderNeo: Returns a Stream containing all items which must have their models/client items generated or empty if none are desired.
When using providers for specific
Itemusages, it is best to override this method returning the exact items which must be generated, or empty if generating onlyBlockmodels (which have no respectiveItem).Default implementation generates models for items matching the given
modId.- Overrides:
getKnownItemsin classModelProvider- See Also:
-