Interface StartingTask


public interface StartingTask
The StartingTask interface represents a task that handles the starting process of a game in a BedWars arena.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the task.
    Get the arena associated with the task.
    org.bukkit.scheduler.BukkitTask
    Get the BukkitTask associated with the task.
    int
    Get the countdown value for the starting process.
    int
    Get the task ID of the task.
    void
    setCountdown(int countdown)
    Set the countdown value for the starting process.
  • Method Details

    • getCountdown

      int getCountdown()
      Get the countdown value for the starting process.
      Returns:
      The countdown value.
    • setCountdown

      void setCountdown(int countdown)
      Set the countdown value for the starting process.
      Parameters:
      countdown - The countdown value to set.
    • getArena

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

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

      org.bukkit.scheduler.BukkitTask getBukkitTask()
      Get the BukkitTask associated with the task.
      Returns:
      The BukkitTask object.
    • cancel

      void cancel()
      Cancel the task.