Interface ModelLoadingPlugin.Context

Enclosing interface:
ModelLoadingPlugin

@NonExtendable public static interface ModelLoadingPlugin.Context
  • Method Details

    • addModels

      void addModels(Identifier... ids)
      Adds one or more models that will be loaded, baked, and made available through FabricBakedModelManager.getModel(Identifier).
    • addModels

      void addModels(Collection<? extends Identifier> ids)
      Adds multiple models that will be loaded, baked, and made available through FabricBakedModelManager.getModel(Identifier).
    • registerBlockStateResolver

      void registerBlockStateResolver(Block block, BlockStateResolver resolver)
      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.