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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull MechanicsCore
     
     
     
    void
     
    void
     

    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, setMetrics

    Methods 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, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode, namespace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Constructor Details

    • MechanicsCore

      public MechanicsCore()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class me.deecaad.core.MechanicsPlugin
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class me.deecaad.core.MechanicsPlugin
    • handleListeners

      @NotNull public @NotNull CompletableFuture<Void> handleListeners()
      Overrides:
      handleListeners in class me.deecaad.core.MechanicsPlugin
    • handleCommands

      @NotNull public @NotNull CompletableFuture<Void> handleCommands()
      Overrides:
      handleCommands in class me.deecaad.core.MechanicsPlugin
    • getInstance

      @NotNull public static @NotNull MechanicsCore getInstance()
      Returns:
      the MechanicsCore plugin instance