Class MineLibArena
java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.base.Arena
me.hsgamer.minigamecore.bukkit.BukkitArena
me.hsgamer.minigamecore.bukkit.minelib.MineLibArena
- All Implemented Interfaces:
Runnable
,Initializer
,TimePeriod
The MineLib implementation of
BukkitArena
that uses Task
to run the arena.
getPeriod()
and getDelay()
will return the time in Bukkit's ticks (20 ticks = 1 seconds).-
Constructor Summary
ConstructorsConstructorDescriptionMineLibArena
(List<FeatureUnit> parentList) Create a new arenaMineLibArena
(FeatureUnit... parent) Create a new arena -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clear the arenalong
getDelay()
Get the delay before the task runslong
Get the period between task callingprotected void
Initialize the arenaMethods inherited from class me.hsgamer.minigamecore.bukkit.BukkitArena
callStateChanged, isAsync
Methods inherited from class me.hsgamer.minigamecore.base.Arena
clear, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextState
Methods inherited from class me.hsgamer.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList
-
Constructor Details
-
MineLibArena
Create a new arena- Parameters:
parentList
- the parentFeatureUnit
list
-
MineLibArena
Create a new arena- Parameters:
parent
- the parentFeatureUnit
-
-
Method Details
-
getDelay
public long getDelay()Description copied from interface:TimePeriod
Get the delay before the task runs- Specified by:
getDelay
in interfaceTimePeriod
- Returns:
- the delay time
-
getPeriod
public long getPeriod()Description copied from interface:TimePeriod
Get the period between task calling- Specified by:
getPeriod
in interfaceTimePeriod
- Returns:
- the period time
-
initArena
protected void initArena()Description copied from class:Arena
Initialize the arena -
clearArena
protected void clearArena()Description copied from class:Arena
Clear the arena- Overrides:
clearArena
in classArena
- See Also:
-