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

public abstract class BukkitArena extends io.github.projectunified.minigamecore.base.Arena
The Arena for Bukkit
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected boolean
    callStateChanged(io.github.projectunified.minigamecore.base.GameState oldStage, io.github.projectunified.minigamecore.base.GameState newStage)
     
    boolean
    Whether the task is async or not.

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

    clear, clearArena, getCurrentState, getCurrentStateInstance, getNextState, getNextStateInstance, init, initArena, 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

    • BukkitArena

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

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

    • isAsync

      public boolean isAsync()
      Whether the task is async or not. Default is true
      Returns:
      true if the task is async
    • callStateChanged

      protected boolean callStateChanged(io.github.projectunified.minigamecore.base.GameState oldStage, io.github.projectunified.minigamecore.base.GameState newStage)
      Overrides:
      callStateChanged in class io.github.projectunified.minigamecore.base.Arena