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:
io.github.projectunified.minigamecore.base.Initializer,Runnable
public abstract class BukkitArena
extends io.github.projectunified.minigamecore.base.Arena
The
Arena for Bukkit-
Constructor Summary
ConstructorsConstructorDescriptionBukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent) Create a new arenaBukkitArena(List<io.github.projectunified.minigamecore.base.FeatureUnit> parentList) Create a new arena -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancallStateChanged(io.github.projectunified.minigamecore.base.GameState oldStage, io.github.projectunified.minigamecore.base.GameState newStage) booleanisAsync()Whether the task is async or not.Methods inherited from class io.github.projectunified.minigamecore.base.Arena
clear, clearArena, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, initArena, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextStateMethods inherited from class io.github.projectunified.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList
-
Constructor Details
-
BukkitArena
Create a new arena- Parameters:
parentList- the parentFeatureUnitlist
-
BukkitArena
public BukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent) Create a new arena- Parameters:
parent- the parentFeatureUnit
-
-
Method Details
-
isAsync
public boolean isAsync()Whether the task is async or not. Default is true- Returns:
- true if the task is async
-
callStateChanged
protected boolean callStateChanged(io.github.projectunified.minigamecore.base.GameState oldStage, io.github.projectunified.minigamecore.base.GameState newStage) - Overrides:
callStateChangedin classio.github.projectunified.minigamecore.base.Arena
-