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

public class SpectatorItemUseEvent extends PlayerEvent implements ArenaEvent, Cancellable
Gets called whenever a Spectator uses a SpectatorItem
  • Constructor Details

  • Method Details

    • getArena

      public Arena getArena()
      Description copied from interface: ArenaEvent
      Returns the Arena that is involved in this event.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The arena that is involved
    • getSpectator

      public Spectator getSpectator()
      Returns the spectator who is about to use the item.
      Returns:
      The involved spectator
    • getItem

      public SpectatorItem getItem()
      Returns the item that has is about to be used.
      Returns:
      The involved item
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()