Class Registrable

java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.parents.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 Details

    • Registrable

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

    • 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