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
ConstructorsConstructorDescriptionArenaChangeStateEvent(BukkitArena arena, GameState oldState, GameState newState) Construct the event -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Get the arenastatic org.bukkit.event.HandlerListGet the handler listorg.bukkit.event.HandlerListGet the new game stateGet the old game statebooleanvoidsetCancelled(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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin 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
-