Class SimpleBukkitArena
java.lang.Object
io.github.projectunified.minigamecore.base.FeatureUnit
io.github.projectunified.minigamecore.base.Arena
io.github.projectunified.minigamecore.bukkit.BukkitArena
io.github.projectunified.minigamecore.bukkit.simple.SimpleBukkitArena
- All Implemented Interfaces:
io.github.projectunified.minigamecore.base.Initializer,io.github.projectunified.minigamecore.extra.TimePeriod,Runnable
public class SimpleBukkitArena
extends io.github.projectunified.minigamecore.bukkit.BukkitArena
implements io.github.projectunified.minigamecore.extra.TimePeriod
The simple implementation of
BukkitArena that uses BukkitTask to run the arena.
getPeriod() and getDelay() will return the time in Bukkit's ticks (20 ticks = 1 seconds).-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent) Create a new arenaSimpleBukkitArena(List<io.github.projectunified.minigamecore.base.FeatureUnit> parentList) Create a new arena -
Method Summary
Methods inherited from class io.github.projectunified.minigamecore.bukkit.BukkitArena
callStateChanged, isAsyncMethods inherited from class io.github.projectunified.minigamecore.base.Arena
clear, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextStateMethods inherited from class io.github.projectunified.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList
-
Constructor Details
-
SimpleBukkitArena
Create a new arena- Parameters:
parentList- the parentFeatureUnitlist
-
SimpleBukkitArena
public SimpleBukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent) Create a new arena- Parameters:
parent- the parentFeatureUnit
-
-
Method Details
-
getDelay
public long getDelay()- Specified by:
getDelayin interfaceio.github.projectunified.minigamecore.extra.TimePeriod
-
getPeriod
public long getPeriod()- Specified by:
getPeriodin interfaceio.github.projectunified.minigamecore.extra.TimePeriod
-
initArena
protected void initArena()- Overrides:
initArenain classio.github.projectunified.minigamecore.base.Arena
-
clearArena
protected void clearArena()- Overrides:
clearArenain classio.github.projectunified.minigamecore.base.Arena
-