Package dev.hypera.chameleon.extension
Interface ChameleonPlatformExtension
-
public interface ChameleonPlatformExtensionChameleon platform extension.Classes implementing this interface must also implement
T.- See Also:
ChameleonExtension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit(@NotNull ChameleonLogger logger, @NotNull EventBus eventBus)Extension init.voidload(@NotNull Chameleon chameleon)Extension load.
-
-
-
Method Detail
-
init
void init(@NotNull @NotNull ChameleonLogger logger, @NotNull @NotNull EventBus eventBus) throws ChameleonExtensionExceptionExtension init.This method will be called when the Extension is initialised by Chameleon, either before Chameleon is constructed, or when EventManager#loadExtension is called.
- Parameters:
logger- Logger.eventBus- Event bus.- Throws:
ChameleonExtensionException
-
load
void load(@NotNull @NotNull Chameleon chameleon)Extension load.This method will be called when Chameleon has finished loading, or when EventManager#loadExtension is called after Chameleon has loaded.
If your extension is platform dependant, then you can cast
chameleonto the platform Chameleon implementation, e.g. BukkitChameleon, BungeeCordChameleon, etc.- Parameters:
chameleon- Chameleon instance.
-
-