Interface ModelLoadingPlugin.Context
- Enclosing interface:
ModelLoadingPlugin
@NonExtendable
public static interface ModelLoadingPlugin.Context
-
Method Summary
Modifier and TypeMethodDescriptionEvent 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 item model.Event access to replace the unbaked item model used for baking.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
-
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 affect child models (that is, models whose parent hierarchy contains the replaced 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. -
modifyItemModelBeforeBake
Event<ModelModifier.BeforeBakeItem> modifyItemModelBeforeBake()Event access to replace the unbaked item model used for baking. -
modifyItemModelAfterBake
Event<ModelModifier.AfterBakeItem> modifyItemModelAfterBake()Event access to replace the baked item model.
-