public class EventHandlers extends java.lang.Object implements AnnoyingListener
| Constructor and Description |
|---|
EventHandlers(@NotNull AnnoyingPlugin plugin)
Instantiates a new
EventHandlers for handling API events |
| Modifier and Type | Method and Description |
|---|---|
@NotNull AnnoyingPlugin |
getPlugin()
The
AnnoyingPlugin that this listener belongs to |
void |
onEntityDamageByEntity(@NotNull org.bukkit.event.entity.EntityDamageByEntityEvent event)
Called when an entity is damaged by an entity
|
void |
onPlayerMove(@NotNull org.bukkit.event.player.PlayerMoveEvent event)
Holds information for player movement events
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRegistered, register, setRegistered, unregisterpublic EventHandlers(@NotNull
@NotNull AnnoyingPlugin plugin)
EventHandlers for handling API eventsplugin - the plugin instance@NotNull public @NotNull AnnoyingPlugin getPlugin()
AnnoyingListenerAnnoyingPlugin that this listener belongs togetPlugin in interface AnnoyingListenerpublic void onPlayerMove(@NotNull
@NotNull org.bukkit.event.player.PlayerMoveEvent event)
event - the eventAnnoyingPlayerMoveEventpublic void onEntityDamageByEntity(@NotNull
@NotNull org.bukkit.event.entity.EntityDamageByEntityEvent event)
event - the eventPlayerDamageByPlayerEvent