Class AnnoyingListener

  • All Implemented Interfaces:
    org.bukkit.event.Listener, Annoyable
    Direct Known Subclasses:
    CustomEventHandler

    public abstract class AnnoyingListener
    extends Registrable
    implements org.bukkit.event.Listener
    A listener that can be registered to the Bukkit event system
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnoyingListener()
      Constructs a new listener instance for registration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void register()
      Registers the listener to the plugin
      If the listener contains any custom events from Annoying API (such as AdvancedPlayerMoveEvent), those events' respective listener handlers will be registered as well.
      void unregister()
      Unregisters the listener from the plugin
      • Methods inherited from class xyz.srnyx.javautilities.parents.Stringable

        toString, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AnnoyingListener

        public AnnoyingListener()
        Constructs a new listener instance for registration
    • Method Detail

      • register

        public void register()
        Registers the listener to the plugin
        If the listener contains any custom events from Annoying API (such as AdvancedPlayerMoveEvent), those events' respective listener handlers will be registered as well.
        It will only attempt to register those custom events once (when it's first registered), if this listener is unregistered and registered again, it will not attempt to register the custom events again.
        Overrides:
        register in class Registrable