-
- All Implemented Interfaces:
-
kotlinx.coroutines.CoroutineScope,land.vani.mcorouhlin.permission.PermissionRegisterer,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public interface McorouhlinPlugin implements Plugin, CoroutineScope, PermissionRegistererRepresents a Plugin with mcorouhlin framework.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonEnableAsync()Called when this plugin is enabled. abstract UnitonDisableAsync()Called when this plugin is disabled. abstract UnitonLoadAsync()Called when this plugin is load. abstract Unitevents(Function1<Events<Event>, Unit> block)Register events with Events. abstract MinecraftMainThreadDispatchergetMainThreadDispatcher()CoroutineDispatcher that runs in the Minecraft main thread. abstract MinecraftAsyncDispatchergetAsyncDispatcher()CoroutineDispatcher that runs in the Minecraft async thread. abstract CoroutineContextgetCoroutineContext()-
Methods inherited from class org.bukkit.command.TabExecutor
onCommand, onTabComplete -
Methods inherited from class land.vani.mcorouhlin.paper.McorouhlinPlugin
getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLog4JLogger, getLogger, getName, getPluginLoader, getResource, getSLF4JLogger, getServer, isEnabled, isNaggable, onDisable, onEnable, onLoad, registerPermissions, registerPermissions, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onEnableAsync
abstract Unit onEnableAsync()
Called when this plugin is enabled.
-
onDisableAsync
abstract Unit onDisableAsync()
Called when this plugin is disabled.
-
onLoadAsync
abstract Unit onLoadAsync()
Called when this plugin is load.
-
getMainThreadDispatcher
abstract MinecraftMainThreadDispatcher getMainThreadDispatcher()
CoroutineDispatcher that runs in the Minecraft main thread.
-
getAsyncDispatcher
abstract MinecraftAsyncDispatcher getAsyncDispatcher()
CoroutineDispatcher that runs in the Minecraft async thread.
-
getCoroutineContext
abstract CoroutineContext getCoroutineContext()
-
-
-
-