Class HSCoreBukkitArena
java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.base.Arena
me.hsgamer.minigamecore.bukkit.BukkitArena
me.hsgamer.minigamecore.bukkit.hscore.HSCoreBukkitArena
- All Implemented Interfaces:
Runnable,me.hsgamer.minigamecore.base.Initializer,me.hsgamer.minigamecore.extra.TimePeriod
public class HSCoreBukkitArena
extends BukkitArena
implements me.hsgamer.minigamecore.extra.TimePeriod
The implementation of
BukkitArena that uses Scheduler to run the arena.
getPeriod() and getDelay() will return the time in Bukkit's ticks (20 ticks = 1 seconds).-
Constructor Summary
ConstructorsConstructorDescriptionHSCoreBukkitArena(String name, List<me.hsgamer.minigamecore.base.FeatureUnit> parentList) Create a new arenaHSCoreBukkitArena(String name, me.hsgamer.minigamecore.base.FeatureUnit... parent) Create a new arena -
Method Summary
Methods inherited from class me.hsgamer.minigamecore.bukkit.BukkitArena
callStateChangedMethods inherited from class me.hsgamer.minigamecore.base.Arena
clear, getCurrentState, getCurrentStateInstance, getName, getNextState, getNextStateInstance, init, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextStateMethods inherited from class me.hsgamer.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList
-
Constructor Details
-
HSCoreBukkitArena
Create a new arena- Parameters:
name- the name of the arenaparentList- the parentFeatureUnitlist
-
HSCoreBukkitArena
Create a new arena- Parameters:
name- the name of the arenaparent- the parentFeatureUnit
-
-
Method Details
-
getDelay
public long getDelay()- Specified by:
getDelayin interfaceme.hsgamer.minigamecore.extra.TimePeriod
-
getPeriod
public long getPeriod()- Specified by:
getPeriodin interfaceme.hsgamer.minigamecore.extra.TimePeriod
-
isAsync
public boolean isAsync()- Specified by:
isAsyncin classBukkitArena
-
initArena
protected void initArena()- Overrides:
initArenain classme.hsgamer.minigamecore.base.Arena
-
clearArena
protected void clearArena()- Overrides:
clearArenain classme.hsgamer.minigamecore.base.Arena
-