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 Event
Event.Result -
Field Summary
Fields inherited from class 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 PlayerEvent
getPlayerMethods inherited from class Event
getEventName, isAsynchronousMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-