Class NHook<P extends CodexPlugin<P>>

java.lang.Object
studio.magemonkey.codex.manager.IListener<P>
studio.magemonkey.codex.hooks.NHook<P>
All Implemented Interfaces:
org.bukkit.event.Listener, studio.magemonkey.codex.manager.AbstractListener
Direct Known Subclasses:
CitizensHK, MythicMobsHK, MythicMobsHKv5, VaultHK, WorldGuardHK

public abstract class NHook<P extends CodexPlugin<P>> extends studio.magemonkey.codex.manager.IListener<P>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected studio.magemonkey.codex.hooks.HookState
     

    Fields inherited from class studio.magemonkey.codex.manager.IListener

    plugin
  • Constructor Summary

    Constructors
    Constructor
    Description
    NHook(P plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    final String
     
    final studio.magemonkey.codex.hooks.HookState
     
    int
     
    final void
     
    protected abstract studio.magemonkey.codex.hooks.HookState
     
    protected abstract void
     
    final void
     

    Methods inherited from class studio.magemonkey.codex.manager.IListener

    registerListeners

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface studio.magemonkey.codex.manager.AbstractListener

    unregisterListeners
  • Field Details

    • state

      protected studio.magemonkey.codex.hooks.HookState state
  • Constructor Details

    • NHook

      public NHook(@NotNull P plugin)
  • Method Details

    • hook

      public final void hook()
    • unhook

      public final void unhook()
    • getPlugin

      @NotNull public final String getPlugin()
    • setup

      @NotNull protected abstract studio.magemonkey.codex.hooks.HookState setup()
    • shutdown

      protected abstract void shutdown()
    • getState

      @NotNull public final studio.magemonkey.codex.hooks.HookState getState()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object