Class BukkitArena
java.lang.Object
io.github.projectunified.minigamecore.base.FeatureUnit
io.github.projectunified.minigamecore.base.Arena
io.github.projectunified.minigamecore.bukkit.BukkitArena
- All Implemented Interfaces:
- Initializer,- Runnable
- Direct Known Subclasses:
- MineLibArena,- SimpleBukkitArena
The 
Arena for Bukkit- 
Constructor SummaryConstructorsConstructorDescriptionBukkitArena(FeatureUnit... parent) Create a new arenaBukkitArena(List<FeatureUnit> parentList) Create a new arena
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancallStateChanged(GameState oldStage, GameState newStage) Called when the arena's state is about to change.booleanisAsync()Whether the task is async or not.Methods inherited from class io.github.projectunified.minigamecore.base.Arenaclear, clearArena, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, initArena, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextStateMethods inherited from class io.github.projectunified.minigamecore.base.FeatureUnitgetFeature, getFeatures, getGameState, getGameStates, getParent, getParentList
- 
Constructor Details- 
BukkitArenaCreate a new arena- Parameters:
- parentList- the parent- FeatureUnitlist
 
- 
BukkitArenaCreate a new arena- Parameters:
- parent- the parent- FeatureUnit
 
 
- 
- 
Method Details- 
isAsyncpublic boolean isAsync()Whether the task is async or not. Default is true- Returns:
- true if the task is async
 
- 
callStateChangedDescription copied from class:ArenaCalled when the arena's state is about to change. This is usually used to perform actions or validations on state transitions. Return false to cancel the state change (e.g., if you manually set a new state viaArena.setNextState(Class)).- Overrides:
- callStateChangedin class- Arena
- Parameters:
- oldStage- the old state (may be null)
- newStage- the new state (may be null)
- Returns:
- true if the change should proceed, false to cancel it
 
 
-