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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Returns theArenathat is involved in this event.static HandlerListgetItem()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
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
SpectatorItemUseEvent
-
-
Method Details
-
getArena
Description copied from interface:ArenaEventReturns theArenathat is involved in this event.- Specified by:
getArenain 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:
getHandlersin classEvent
-
getHandlerList
-