Package dev.hypera.chameleon
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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidbootstrap(@NotNull ChameleonLogger logger, @NotNull EventBus eventBus)Called before Chameleon is loaded, allowing you to load certain parts of the plugin beforehand.@NotNull ChameleonPlugincreatePlugin(@NotNull Chameleon chameleon)Returns an instantiated plugin main class.
-
-
-
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.
-
-