Class Registrable

  • All Implemented Interfaces:
    Annoyable
    Direct Known Subclasses:
    AnnoyingCommand, AnnoyingListener

    public abstract class Registrable
    extends xyz.srnyx.javautilities.parents.Stringable
    implements Annoyable
    An abstract class for classes that can be registered/unregistered by the plugin
    • Constructor Summary

      Constructors 
      Constructor Description
      Registrable()
      Constructs a new Registrable for registration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRegistered()
      Returns whether the class is registered or not
      void register()
      Registers the class
      void setRegistered​(boolean registered)
      Sets whether the class is registered or not
      void unregister()
      Unregisters the class
      • 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

      • Registrable

        public Registrable()
        Constructs a new Registrable for registration
    • Method Detail

      • isRegistered

        public boolean isRegistered()
        Returns whether the class is registered or not
        Returns:
        whether the class is registered or not
      • setRegistered

        public void setRegistered​(boolean registered)
        Sets whether the class is registered or not
        Parameters:
        registered - whether the class is registered or not
      • register

        public void register()
        Registers the class
      • unregister

        public void unregister()
        Unregisters the class