Class PylonBase

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
io.github.pylonmc.pylon.base.PylonBase
All Implemented Interfaces:
io.github.pylonmc.pylon.core.addon.PylonAddon, io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, net.kyori.adventure.key.Keyed, net.kyori.adventure.key.Namespaced, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.Keyed, org.bukkit.plugin.Plugin

public class PylonBase extends org.bukkit.plugin.java.JavaPlugin implements io.github.pylonmc.pylon.core.addon.PylonAddon
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.addon.PylonAddon

    io.github.pylonmc.pylon.core.addon.PylonAddon.Companion
  • Field Summary

    Fields inherited from interface io.github.pylonmc.pylon.core.addon.PylonAddon

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static PylonBase
     
    @NotNull org.bukkit.plugin.java.JavaPlugin
     
    @NotNull Set<@NotNull Locale>
     
    @NotNull org.bukkit.Material
     
    void
     
    static void
    runSyncTimer(@NotNull Consumer<org.bukkit.scheduler.BukkitTask> task, long delay, long period)
     

    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, onDisable, onLoad, 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.Keyed

    key

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger

    Methods inherited from interface io.github.pylonmc.pylon.core.addon.PylonAddon

    getDisplayName, getKey, registerWithPylon, suppressAddonNameWarning
  • Constructor Details

    • PylonBase

      public PylonBase()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • getJavaPlugin

      @NotNull public @NotNull org.bukkit.plugin.java.JavaPlugin getJavaPlugin()
      Specified by:
      getJavaPlugin in interface io.github.pylonmc.pylon.core.addon.PylonAddon
    • getLanguages

      @NotNull public @NotNull Set<@NotNull Locale> getLanguages()
      Specified by:
      getLanguages in interface io.github.pylonmc.pylon.core.addon.PylonAddon
    • getMaterial

      @NotNull public @NotNull org.bukkit.Material getMaterial()
      Specified by:
      getMaterial in interface io.github.pylonmc.pylon.core.addon.PylonAddon
    • runSyncTimer

      public static void runSyncTimer(@NotNull @NotNull Consumer<org.bukkit.scheduler.BukkitTask> task, long delay, long period)
    • getInstance

      public static PylonBase getInstance()