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 Classes Modifier and Type Class Description static interfaceRegistrable.IgnoreAn annotation to ignore a class from being automatically registered viaRegistrationOptions.AutomaticRegistration
-
Constructor Summary
Constructors Constructor Description Registrable()Constructs a newRegistrablefor registration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRegistered()Returns whether the class is registered or notvoidregister()Registers the classvoidsetRegistered(boolean registered)Sets whether the class is registered or notvoidunregister()Unregisters the class-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface xyz.srnyx.annoyingapi.parents.Annoyable
getAnnoyingPlugin
-
-
-
-
Constructor Detail
-
Registrable
public Registrable()
Constructs a newRegistrablefor 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
-
-