Class MineLibArena

All Implemented Interfaces:
Runnable, Initializer, TimePeriod

public class MineLibArena extends BukkitArena implements 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 Details

    • MineLibArena

      public MineLibArena(List<FeatureUnit> parentList)
      Create a new arena
      Parameters:
      parentList - the parent FeatureUnit list
    • MineLibArena

      public MineLibArena(FeatureUnit... parent)
      Create a new arena
      Parameters:
      parent - the parent FeatureUnit
  • Method Details

    • getDelay

      public long getDelay()
      Description copied from interface: TimePeriod
      Get the delay before the task runs
      Specified by:
      getDelay in interface TimePeriod
      Returns:
      the delay time
    • getPeriod

      public long getPeriod()
      Description copied from interface: TimePeriod
      Get the period between task calling
      Specified by:
      getPeriod in interface TimePeriod
      Returns:
      the period time
    • initArena

      protected void initArena()
      Description copied from class: Arena
      Initialize the arena
      Overrides:
      initArena in class Arena
      See Also:
    • clearArena

      protected void clearArena()
      Description copied from class: Arena
      Clear the arena
      Overrides:
      clearArena in class Arena
      See Also: