Class ArenaChangeStateEvent
java.lang.Object
org.bukkit.event.Event
me.hsgamer.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
ConstructorsConstructorDescriptionArenaChangeStateEvent
(BukkitArena arena, GameState oldState, GameState newState) Construct the event -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Get the arenastatic org.bukkit.event.HandlerList
Get the handler listorg.bukkit.event.HandlerList
Get the new game stateGet the old game stateboolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ArenaChangeStateEvent
Construct the event- Parameters:
arena
- the arenaoldState
- the old game statenewState
- 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 interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getArena
Get the arena- Returns:
- the arena
-
getOldState
Get the old game state- Returns:
- the old game state
-
getNewState
Get the new game state- Returns:
- the new game state
-