Interface ILoaderRegistrationHandler


public interface ILoaderRegistrationHandler
Manages the registration of IScriptLoaders for CraftTweaker.

Refer to the documentation for loaders for more information on what they represent.

Since:
9.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerLoader(String name, String... inheritedLoaders)
    Registers a loader with the given name and that inherits from the specified loaders.
  • Method Details

    • registerLoader

      void registerLoader(String name, String... inheritedLoaders)
      Registers a loader with the given name and that inherits from the specified loaders.

      Inheriting from a loader means that all classes that are available to that loader are also available to the loader that is currently being registered.

      It is not necessary for a child loader to be registered after its parents, as long as both are registered in the same time-frame.

      Parameters:
      name - The name of the loader that should be registered.
      inheritedLoaders - The names of other loaders this loader wants to inherit from.
      Since:
      9.1.0