Class SimpleBukkitArena

java.lang.Object
io.github.projectunified.minigamecore.base.FeatureUnit
io.github.projectunified.minigamecore.base.Arena
io.github.projectunified.minigamecore.bukkit.BukkitArena
io.github.projectunified.minigamecore.bukkit.simple.SimpleBukkitArena
All Implemented Interfaces:
io.github.projectunified.minigamecore.base.Initializer, io.github.projectunified.minigamecore.extra.TimePeriod, Runnable

public class SimpleBukkitArena extends io.github.projectunified.minigamecore.bukkit.BukkitArena implements io.github.projectunified.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

    Constructors
    Constructor
    Description
    SimpleBukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent)
    Create a new arena
    SimpleBukkitArena(List<io.github.projectunified.minigamecore.base.FeatureUnit> parentList)
    Create a new arena
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    long
     
    long
     
    protected void
     

    Methods inherited from class io.github.projectunified.minigamecore.bukkit.BukkitArena

    callStateChanged, isAsync

    Methods inherited from class io.github.projectunified.minigamecore.base.Arena

    clear, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, isValid, loadFeatures, loadGameStates, postInit, postInitArena, run, setNextState

    Methods inherited from class io.github.projectunified.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

    • SimpleBukkitArena

      public SimpleBukkitArena(List<io.github.projectunified.minigamecore.base.FeatureUnit> parentList)
      Create a new arena
      Parameters:
      parentList - the parent FeatureUnit list
    • SimpleBukkitArena

      public SimpleBukkitArena(io.github.projectunified.minigamecore.base.FeatureUnit... parent)
      Create a new arena
      Parameters:
      parent - the parent FeatureUnit
  • Method Details

    • getDelay

      public long getDelay()
      Specified by:
      getDelay in interface io.github.projectunified.minigamecore.extra.TimePeriod
    • getPeriod

      public long getPeriod()
      Specified by:
      getPeriod in interface io.github.projectunified.minigamecore.extra.TimePeriod
    • initArena

      protected void initArena()
      Overrides:
      initArena in class io.github.projectunified.minigamecore.base.Arena
    • clearArena

      protected void clearArena()
      Overrides:
      clearArena in class io.github.projectunified.minigamecore.base.Arena