Package xyz.srnyx.annoyingapi.parents
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceAn annotation to ignore a class from being automatically registered viaRegistrationOptions.AutomaticRegistration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the class is registered or notvoidregister()Registers the classvoidsetRegistered(boolean registered) Sets whether the class is registered or notvoidUnregisters the classMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface xyz.srnyx.annoyingapi.parents.Annoyable
getAnnoyingPlugin
-
Constructor Details
-
Registrable
public Registrable()Constructs a newRegistrablefor 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
-