Class SpectatorItemUseEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.SpectatorItemUseEvent
- All Implemented Interfaces:
ArenaEvent
,Cancellable
Gets called whenever a
Spectator
uses a SpectatorItem
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Returns theArena
that is involved in this event.static HandlerList
getItem()
Returns the item that has is about to be used.Returns the spectator who is about to use the item.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
SpectatorItemUseEvent
-
-
Method Details
-
getArena
Description copied from interface:ArenaEvent
Returns theArena
that is involved in this event.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena that is involved
-
getSpectator
Returns the spectator who is about to use the item.- Returns:
- The involved spectator
-
getItem
Returns the item that has is about to be used.- Returns:
- The involved item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-