Interface ModelLoadingPlugin.Context
- Enclosing interface:
ModelLoadingPlugin
@NonExtendable
public static interface ModelLoadingPlugin.Context
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModels
(Collection<? extends Identifier> ids) Adds multiple models that will be loaded, baked, and made available throughFabricBakedModelManager.getModel(Identifier)
.void
addModels
(Identifier... ids) Adds one or more models that will be loaded, baked, and made available throughFabricBakedModelManager.getModel(Identifier)
.Event access to replace the baked block model.Event access to replace the unbaked block model used for baking.Event access to monitor unbaked block model loads and replace the loaded model.Event access to replace the baked model.Event access to replace the unbaked model used for baking without replacing the cached model.Event access to monitor unbaked model loads and replace the loaded model.void
registerBlockStateResolver
(Block block, BlockStateResolver resolver) Registers a block state resolver for a block.
-
Method Details
-
addModels
Adds one or more models that will be loaded, baked, and made available throughFabricBakedModelManager.getModel(Identifier)
. -
addModels
Adds multiple models that will be loaded, baked, and made available throughFabricBakedModelManager.getModel(Identifier)
. -
registerBlockStateResolver
Registers a block state resolver for a block.The block must be registered and a block state resolver must not have been previously registered for the block.
-
modifyModelOnLoad
Event<ModelModifier.OnLoad> modifyModelOnLoad()Event access to monitor unbaked model loads and replace the loaded model.Replacements done by listeners of this callback do affect child models (that is, models whose parent hierarchy contains the replaced model), unlike
modifyModelBeforeBake()
. -
modifyModelBeforeBake
Event<ModelModifier.BeforeBake> modifyModelBeforeBake()Event access to replace the unbaked model used for baking without replacing the cached model.Replacements done by listeners of this callback do not affect child models (that is, models whose parent hierarchy contains the replaced model), unlike
modifyModelOnLoad()
. -
modifyModelAfterBake
Event<ModelModifier.AfterBake> modifyModelAfterBake()Event access to replace the baked model. -
modifyBlockModelOnLoad
Event<ModelModifier.OnLoadBlock> modifyBlockModelOnLoad()Event access to monitor unbaked block model loads and replace the loaded model. -
modifyBlockModelBeforeBake
Event<ModelModifier.BeforeBakeBlock> modifyBlockModelBeforeBake()Event access to replace the unbaked block model used for baking. -
modifyBlockModelAfterBake
Event<ModelModifier.AfterBakeBlock> modifyBlockModelAfterBake()Event access to replace the baked block model.
-