All Implemented Interfaces:
Initializer, Runnable
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
      Called when the arena's state is about to change. This is usually used to perform actions or validations on state transitions. Return false to cancel the state change (e.g., if you manually set a new state via Arena.setNextState(Class)).
      Overrides:
      callStateChanged in class Arena
      Parameters:
      oldStage - the old state (may be null)
      newStage - the new state (may be null)
      Returns:
      true if the change should proceed, false to cancel it