Class ArenaChangeStateEvent

java.lang.Object
org.bukkit.event.Event
io.github.projectunified.minigamecore.bukkit.event.ArenaChangeStateEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ArenaChangeStateEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
The event called when an arena changed its state. If you modified the next state in this event, you should cancel the event with setCancelled(boolean).
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArenaChangeStateEvent(BukkitArena arena, io.github.projectunified.minigamecore.base.GameState oldState, io.github.projectunified.minigamecore.base.GameState newState)
    Construct the event
  • Method Summary

    Modifier and Type
    Method
    Description
    io.github.projectunified.minigamecore.base.Arena
    Get the arena
    static org.bukkit.event.HandlerList
    Get the handler list
    org.bukkit.event.HandlerList
     
    io.github.projectunified.minigamecore.base.GameState
    Get the new game state
    io.github.projectunified.minigamecore.base.GameState
    Get the old game state
    boolean
     
    void
    setCancelled(boolean cancelled)
     

    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
  • Constructor Details

    • ArenaChangeStateEvent

      public ArenaChangeStateEvent(BukkitArena arena, io.github.projectunified.minigamecore.base.GameState oldState, io.github.projectunified.minigamecore.base.GameState newState)
      Construct the event
      Parameters:
      arena - the arena
      oldState - the old game state
      newState - the new game state
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Get the handler list
      Returns:
      the handler list
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getArena

      public io.github.projectunified.minigamecore.base.Arena getArena()
      Get the arena
      Returns:
      the arena
    • getOldState

      public io.github.projectunified.minigamecore.base.GameState getOldState()
      Get the old game state
      Returns:
      the old game state
    • getNewState

      public io.github.projectunified.minigamecore.base.GameState getNewState()
      Get the new game state
      Returns:
      the new game state