Package dev.hypera.chameleon.platform
Class PlatformChameleon<P>
- java.lang.Object
-
- dev.hypera.chameleon.Chameleon
-
- dev.hypera.chameleon.platform.PlatformChameleon<P>
-
- Type Parameters:
P- Platform plugin type.
public abstract class PlatformChameleon<P> extends Chameleon
Platform Chameleon provides access to the platform plugin.This class is designed for use inside Chameleon platform implementations only. This API is subject to change and use will not be supported.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlatformChameleon(@NotNull ChameleonPluginBootstrap pluginBootstrap, P platformPlugin, @NotNull EventBus eventBus, @NotNull ChameleonLogger logger, @NotNull ExtensionMap extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgetPlatformPlugin()Returns the underlying platform plugin.-
Methods inherited from class dev.hypera.chameleon.Chameleon
getAdventure, getBranch, getBuildTime, getCommandManager, getCommitHash, getDataDirectory, getEventBus, getExtensionManager, getInternalLogger, getLogger, getPlatform, getPlugin, getPluginManager, getScheduler, getShortCommitHash, getUserManager, getVersion, onDisable, onEnable, onLoad
-
-
-
-
Field Detail
-
plugin
@NotNull protected final P plugin
-
-
Constructor Detail
-
PlatformChameleon
protected PlatformChameleon(@NotNull @NotNull ChameleonPluginBootstrap pluginBootstrap, @NotNull P platformPlugin, @NotNull @NotNull EventBus eventBus, @NotNull @NotNull ChameleonLogger logger, @NotNull @NotNull ExtensionMap extensions)
-
-
Method Detail
-
getPlatformPlugin
@NotNull public final P getPlatformPlugin()
Returns the underlying platform plugin.- Returns:
- platform plugin.
-
-