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:
Initializer,TimePeriod,Runnable
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(FeatureUnit... parent) Create a new arenaSimpleBukkitArena(List<FeatureUnit> parentList) Create a new arena -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear the arenalonggetDelay()Get the delay before the task runslongGet the period between task callingprotected voidInitialize the arenaMethods 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
Create a new arena- Parameters:
parent- the parentFeatureUnit
-
-
Method Details
-
getDelay
public long getDelay()Description copied from interface:TimePeriodGet the delay before the task runs- Specified by:
getDelayin interfaceTimePeriod- Returns:
- the delay time
-
getPeriod
public long getPeriod()Description copied from interface:TimePeriodGet the period between task calling- Specified by:
getPeriodin interfaceTimePeriod- Returns:
- the period time
-
initArena
protected void initArena()Description copied from class:ArenaInitialize the arena -
clearArena
protected void clearArena()Description copied from class:ArenaClear the arena- Overrides:
clearArenain classArena- See Also:
-