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
public class CustomEventHandler extends AnnoyingListener
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
Fields Modifier and Type Field Description protected @NotNull AnnoyingPluginpluginTheAnnoyingPluginthat this handler is for
-
Constructor Summary
Constructors Constructor Description CustomEventHandler(@NotNull AnnoyingPlugin plugin)Constructs a new handler for custom events
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnnoyingPlugingetAnnoyingPlugin()TheAnnoyingPlugininstance-
Methods inherited from class xyz.srnyx.annoyingapi.AnnoyingListener
register, unregister
-
Methods inherited from class xyz.srnyx.annoyingapi.parents.Registrable
isRegistered, setRegistered
-
-
-
-
Field Detail
-
plugin
@NotNull protected final @NotNull AnnoyingPlugin plugin
TheAnnoyingPluginthat this handler is for
-
-
Constructor Detail
-
CustomEventHandler
public CustomEventHandler(@NotNull @NotNull AnnoyingPlugin plugin)Constructs a new handler for custom events- Parameters:
plugin-plugin
-
-
Method Detail
-
getAnnoyingPlugin
@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Returns:
- the plugin instance
-
-