Class HookManager

java.lang.Object
de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
de.themoep.hook.bukkit.HookManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class HookManager extends de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin> implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
    HookManager(org.bukkit.plugin.Plugin parent, String hookPackage)
    Construct the manager
    HookManager(org.bukkit.plugin.Plugin parent, String hookPackage, boolean onePackagePerHook)
    Construct the manager
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Collection<org.bukkit.plugin.Plugin>
     
    protected String
    getName(org.bukkit.plugin.Plugin plugin)
     
    protected String[]
    getNames(org.bukkit.plugin.Plugin plugin)
     
    protected String
    getVersion(org.bukkit.plugin.Plugin plugin)
     
    protected boolean
    isEnabled(org.bukkit.plugin.Plugin plugin)
     
    void
    onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
     
    void
    onPluginEnable(org.bukkit.event.server.PluginEnableEvent event)
     

    Methods inherited from class de.themoep.hook.core.AbstractHookManager

    getHook, getHook, getSuffix, onHookableDisable, onHookableEnable, registerExistingHookables, setSuffix

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HookManager

      public HookManager(org.bukkit.plugin.Plugin parent, String hookPackage)
      Construct the manager
      Parameters:
      parent - The parent plugin
      hookPackage - The package the hooks are in
    • HookManager

      public HookManager(org.bukkit.plugin.Plugin parent, String hookPackage, boolean onePackagePerHook)
      Construct the manager
      Parameters:
      parent - The parent plugin
      hookPackage - The package the hooks are in
      onePackagePerHook - Whether each hook should have its own package named after the hook or not Defaults to false
  • Method Details

    • onPluginEnable

      public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent event)
    • onPluginDisable

      public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
    • getName

      protected String getName(org.bukkit.plugin.Plugin plugin)
      Specified by:
      getName in class de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
    • getNames

      protected String[] getNames(org.bukkit.plugin.Plugin plugin)
      Overrides:
      getNames in class de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
    • getVersion

      protected String getVersion(org.bukkit.plugin.Plugin plugin)
      Specified by:
      getVersion in class de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
    • isEnabled

      protected boolean isEnabled(org.bukkit.plugin.Plugin plugin)
      Specified by:
      isEnabled in class de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
    • getHookables

      protected Collection<org.bukkit.plugin.Plugin> getHookables()
      Specified by:
      getHookables in class de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>