-
- All Implemented Interfaces:
-
kotlinx.coroutines.CoroutineScope,land.vani.mcorouhlin.paper.McorouhlinPlugin,land.vani.mcorouhlin.permission.PermissionRegisterer,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public abstract class McorouhlinKotlinPlugin extends JavaPlugin implements McorouhlinPlugin
Represents a JavaPlugin with mcorouhlin framework.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContextcoroutineContextprivate final MinecraftAsyncDispatcherasyncDispatcherprivate final MinecraftMainThreadDispatchermainThreadDispatcherprivate final Loggerlogger
-
Constructor Summary
Constructors Constructor Description McorouhlinKotlinPlugin()McorouhlinKotlinPlugin(JavaPluginLoader loader, PluginDescriptionFile description, File dataFolder, File file)
-
Method Summary
Modifier and Type Method Description CoroutineContextgetCoroutineContext()MinecraftAsyncDispatchergetAsyncDispatcher()CoroutineDispatcher that runs in the Minecraft async thread. MinecraftMainThreadDispatchergetMainThreadDispatcher()CoroutineDispatcher that runs in the Minecraft main thread. UnitonEnableAsync()Called when this plugin is enabled. UnitonDisableAsync()Called when this plugin is disabled. UnitonLoadAsync()Called when this plugin is load. UnitonEnable()UnitonDisable()UnitonLoad()UnitregisterPermissions(Iterable<Permission> permissions)Unitevents(Function1<Events<Event>, Unit> block)Register events with Events. -
Methods inherited from class land.vani.mcorouhlin.paper.McorouhlinPlugin
registerPermissions -
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
equals, getName, hashCode -
Methods inherited from class land.vani.mcorouhlin.paper.McorouhlinKotlinPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPluginLoader, getResource, getServer, getTextResource, init, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString -
Methods inherited from class org.bukkit.plugin.PluginBase
getLog4JLogger, getSLF4JLogger -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
getAsyncDispatcher
MinecraftAsyncDispatcher getAsyncDispatcher()
CoroutineDispatcher that runs in the Minecraft async thread.
-
getMainThreadDispatcher
MinecraftMainThreadDispatcher getMainThreadDispatcher()
CoroutineDispatcher that runs in the Minecraft main thread.
-
onEnableAsync
Unit onEnableAsync()
Called when this plugin is enabled.
-
onDisableAsync
Unit onDisableAsync()
Called when this plugin is disabled.
-
onLoadAsync
Unit onLoadAsync()
Called when this plugin is load.
-
registerPermissions
Unit registerPermissions(Iterable<Permission> permissions)
-
-
-
-