Package xyz.srnyx.annoyingapi.events
Class CustomEventHandler
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.parents.Registrable
xyz.srnyx.annoyingapi.AnnoyingListener
xyz.srnyx.annoyingapi.events.CustomEventHandler
- All Implemented Interfaces:
org.bukkit.event.Listener,Annoyable
- Direct Known Subclasses:
AdvancedPlayerMoveEvent.Handler,PlayerDamageByPlayerEvent.Handler
Convenience class for creating handlers for custom events
-
Nested Class Summary
Nested classes/interfaces inherited from class xyz.srnyx.annoyingapi.parents.Registrable
Registrable.Ignore -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull AnnoyingPluginTheAnnoyingPluginthat this handler is for -
Constructor Summary
ConstructorsConstructorDescriptionCustomEventHandler(@NotNull AnnoyingPlugin plugin) Constructs a new handler for custom events -
Method Summary
Methods inherited from class xyz.srnyx.annoyingapi.AnnoyingListener
register, unregisterMethods inherited from class xyz.srnyx.annoyingapi.parents.Registrable
isRegistered, setRegisteredMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Field Details
-
plugin
TheAnnoyingPluginthat this handler is for
-
-
Constructor Details
-
CustomEventHandler
Constructs a new handler for custom events- Parameters:
plugin-plugin
-
-
Method Details
-
getAnnoyingPlugin
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Returns:
- the plugin instance
-