Class SimpleBukkitArena
java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.base.Arena
me.hsgamer.minigamecore.bukkit.BukkitArena
me.hsgamer.minigamecore.bukkit.simple.SimpleBukkitArena
- All Implemented Interfaces:
Runnable,me.hsgamer.minigamecore.base.Initializer,me.hsgamer.minigamecore.extra.TimePeriod
public class SimpleBukkitArena
extends BukkitArena
implements me.hsgamer.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(String name) Create a new arenaSimpleBukkitArena(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
-
Constructor Details
-
SimpleBukkitArena
Create a new arena- Parameters:
name- the name of the arenaparent- the parentFeatureUnit
-
SimpleBukkitArena
Create a new arena- Parameters:
name- the name of the arena
-
-
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
-