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

    Constructors
    Constructor
    Description
    HSCoreBukkitArena(String name, List<me.hsgamer.minigamecore.base.FeatureUnit> parentList)
    Create a new arena
    HSCoreBukkitArena(String name, me.hsgamer.minigamecore.base.FeatureUnit... parent)
    Create a new arena
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    long
     
    long
     
    protected void
     
    boolean
     

    Methods inherited from class me.hsgamer.minigamecore.bukkit.BukkitArena

    callStateChanged

    Methods inherited from class me.hsgamer.minigamecore.base.Arena

    clear, getCurrentState, getCurrentStateInstance, getName, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HSCoreBukkitArena

      public HSCoreBukkitArena(String name, List<me.hsgamer.minigamecore.base.FeatureUnit> parentList)
      Create a new arena
      Parameters:
      name - the name of the arena
      parentList - the parent FeatureUnit list
    • HSCoreBukkitArena

      public HSCoreBukkitArena(String name, me.hsgamer.minigamecore.base.FeatureUnit... parent)
      Create a new arena
      Parameters:
      name - the name of the arena
      parent - the parent FeatureUnit
  • Method Details

    • getDelay

      public long getDelay()
      Specified by:
      getDelay in interface me.hsgamer.minigamecore.extra.TimePeriod
    • getPeriod

      public long getPeriod()
      Specified by:
      getPeriod in interface me.hsgamer.minigamecore.extra.TimePeriod
    • isAsync

      public boolean isAsync()
      Specified by:
      isAsync in class BukkitArena
    • initArena

      protected void initArena()
      Overrides:
      initArena in class me.hsgamer.minigamecore.base.Arena
    • clearArena

      protected void clearArena()
      Overrides:
      clearArena in class me.hsgamer.minigamecore.base.Arena