Class BukkitArena

All Implemented Interfaces:
Runnable, Initializer
Direct Known Subclasses:
MineLibArena, SimpleBukkitArena

public abstract class BukkitArena extends Arena
The Arena for Bukkit
  • Constructor Details

    • BukkitArena

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

      public BukkitArena(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(GameState oldStage, GameState newStage)
      Description copied from class: Arena
      This is called when the state is changed. This is usually used to do actions on state changed. If you did change the state with Arena.setNextState(Class), set the return value to false.
      Overrides:
      callStateChanged in class Arena
      Parameters:
      oldStage - the old state
      newStage - the new state
      Returns:
      true if the change is successful, otherwise false