Interface PlayingTask


public interface PlayingTask
The PlayingTask interface represents a task that is executed during the gameplay of a BedWars mini-game. It provides methods to access the associated arena, Bukkit task, task ID, countdowns, and to cancel the task.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the playing task and associated tasks.
    Get the arena associated with the playing task.
    int
    Get the countdown value for destroying beds in the game.
    org.bukkit.scheduler.BukkitTask
    Get the Bukkit task associated with the playing task.
    int
    Get the countdown value for spawning the ender dragon in the game.
    int
    Get the countdown value for the end of the game.
    int
    Get the task ID of the playing task.
  • Method Details

    • getArena

      IArena getArena()
      Get the arena associated with the playing task.
      Returns:
      The arena object.
    • getBukkitTask

      org.bukkit.scheduler.BukkitTask getBukkitTask()
      Get the Bukkit task associated with the playing task.
      Returns:
      The BukkitTask object representing the task.
    • getTask

      int getTask()
      Get the task ID of the playing task.
      Returns:
      The task ID.
    • getBedsDestroyCountdown

      int getBedsDestroyCountdown()
      Get the countdown value for destroying beds in the game.
      Returns:
      The countdown value for beds destruction.
    • getDragonSpawnCountdown

      int getDragonSpawnCountdown()
      Get the countdown value for spawning the ender dragon in the game.
      Returns:
      The countdown value for ender dragon spawn.
    • getGameEndCountdown

      int getGameEndCountdown()
      Get the countdown value for the end of the game.
      Returns:
      The countdown value for game end.
    • cancel

      void cancel()
      Cancel the playing task and associated tasks.