Class PaperWinterPlugin

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.thewinterframework.paper.PaperWinterPlugin
All Implemented Interfaces:
com.google.inject.Module, com.thewinterframework.plugin.WinterPlugin, 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 abstract class PaperWinterPlugin extends org.bukkit.plugin.java.JavaPlugin implements com.thewinterframework.plugin.WinterPlugin
A base class for Winter plugins that use Paper.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.thewinterframework.expression.ExpressionResolver
     
    protected com.google.inject.Injector
     
    protected final com.thewinterframework.plugin.module.PluginModuleManager
     
    protected final com.thewinterframework.plugin.platform.PlatformPluginManager
     
    protected final com.thewinterframework.scheduler.PluginScheduler
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.google.inject.Injector
     
    com.thewinterframework.expression.ExpressionResolver
     
    protected List<com.google.inject.Module>
     
    protected com.google.inject.Stage
     
    com.google.inject.Injector
     
    final com.thewinterframework.plugin.module.PluginModuleManager
     
    com.thewinterframework.plugin.platform.PlatformPluginManager
     
    com.thewinterframework.scheduler.PluginScheduler
     
    @NotNull org.slf4j.Logger
     
    @NotNull String
     
    final void
     
    final void
     
    final void
     
    void
    setExpressionResolver(com.thewinterframework.expression.ExpressionResolver resolver)
     

    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

    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

    Methods inherited from interface com.thewinterframework.plugin.WinterPlugin

    configure, getZoneId, onPluginDisable, onPluginEnable, onPluginLoad
  • Field Details

    • moduleManager

      protected final com.thewinterframework.plugin.module.PluginModuleManager moduleManager
    • scheduler

      protected final com.thewinterframework.scheduler.PluginScheduler scheduler
    • platformPluginManager

      protected final com.thewinterframework.plugin.platform.PlatformPluginManager platformPluginManager
    • expressionResolver

      protected com.thewinterframework.expression.ExpressionResolver expressionResolver
    • injector

      @Inject protected com.google.inject.Injector injector
  • Constructor Details

    • PaperWinterPlugin

      public PaperWinterPlugin()
  • Method Details

    • onLoad

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

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

      protected com.google.inject.Injector createInjector()
    • onDisable

      public final void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getScheduler

      public com.thewinterframework.scheduler.PluginScheduler getScheduler()
      Specified by:
      getScheduler in interface com.thewinterframework.plugin.WinterPlugin
    • getExpressionResolver

      public com.thewinterframework.expression.ExpressionResolver getExpressionResolver()
      Specified by:
      getExpressionResolver in interface com.thewinterframework.plugin.WinterPlugin
    • setExpressionResolver

      public void setExpressionResolver(com.thewinterframework.expression.ExpressionResolver resolver)
      Specified by:
      setExpressionResolver in interface com.thewinterframework.plugin.WinterPlugin
    • getInjector

      public com.google.inject.Injector getInjector()
      Specified by:
      getInjector in interface com.thewinterframework.plugin.WinterPlugin
    • getSLF4JLogger

      @NotNull public @NotNull org.slf4j.Logger getSLF4JLogger()
      Specified by:
      getSLF4JLogger in interface org.bukkit.plugin.Plugin
      Specified by:
      getSLF4JLogger in interface com.thewinterframework.plugin.WinterPlugin
    • getModuleManager

      public final com.thewinterframework.plugin.module.PluginModuleManager getModuleManager()
      Specified by:
      getModuleManager in interface com.thewinterframework.plugin.WinterPlugin
    • getPlatformManager

      public com.thewinterframework.plugin.platform.PlatformPluginManager getPlatformManager()
      Specified by:
      getPlatformManager in interface com.thewinterframework.plugin.WinterPlugin
    • getGuiceModules

      protected List<com.google.inject.Module> getGuiceModules()
    • getGuiceStage

      protected com.google.inject.Stage getGuiceStage()
    • namespace

      @Namespace @NotNull public @NotNull String namespace()
      Specified by:
      namespace in interface net.kyori.adventure.key.Namespaced