Package me.deecaad.core
Class MechanicsCore
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.deecaad.core.MechanicsPlugin
me.deecaad.core.MechanicsCore
- All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Namespaced,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class MechanicsCore
extends me.deecaad.core.MechanicsPlugin
Main class for MechanicsCore, handles registration of listeners and commands.
-
Field Summary
Fields inherited from class me.deecaad.core.MechanicsPlugin
configuration, debugger, foliaScheduler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MechanicsCore@NotNull CompletableFuture<Void> @NotNull CompletableFuture<Void> voidonEnable()voidonLoad()Methods inherited from class me.deecaad.core.MechanicsPlugin
getClassLoader0, getConfiguration, getDebugger, getFoliaScheduler, getMetrics, getPrimaryColor, getSecondaryColor, handleConfigs, handleExtensions, handleFiles, handleMetrics, handlePacketListeners, handlePermissions, init, onDisable, reload, setConfiguration, setDebugger, setFoliaScheduler, setMetricsMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onTabComplete, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode, namespaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
MechanicsCore
public MechanicsCore()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classme.deecaad.core.MechanicsPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classme.deecaad.core.MechanicsPlugin
-
handleListeners
- Overrides:
handleListenersin classme.deecaad.core.MechanicsPlugin
-
handleCommands
- Overrides:
handleCommandsin classme.deecaad.core.MechanicsPlugin
-
getInstance
- Returns:
- the MechanicsCore plugin instance
-