Interface ChameleonPluginBootstrap

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @OverrideOnly
    @FunctionalInterface
    public interface ChameleonPluginBootstrap
    Chameleon plugin bootstrap.
    • Method Detail

      • bootstrap

        default void bootstrap​(@NotNull
                               @NotNull ChameleonLogger logger,
                               @NotNull
                               @NotNull EventBus eventBus)
        Called before Chameleon is loaded, allowing you to load certain parts of the plugin beforehand.
        Parameters:
        logger - Logger.
        eventBus - Event bus.
      • createPlugin

        @NotNull
        @NotNull ChameleonPlugin createPlugin​(@NotNull
                                              @NotNull Chameleon chameleon)
        Returns an instantiated plugin main class.
        Parameters:
        chameleon - Chameleon instance.
        Returns:
        new plugin instance.