Interface ArenaBuffState


public interface ArenaBuffState
Represents the state of buffs applied to a specific arena.

Value changes during an active match may not be applied immediately.

  • Method Summary

    Modifier and Type
    Method
    Description
    Get the arena associated with this buff state.
    int
    Get the health players have in the arena.
    int
    Get the respawn time for players in the arena.
    int
    Get the movement speed amplification level for players in the arena.
    boolean
    Check if only base spawners are active in the arena.
    boolean
    Check if blocks are protected in restricted areas in the arena.
    boolean
    Check if crafting is allowed in the arena.
    boolean
    Check if fall damage is enabled in the arena.
    boolean
    Check if low gravity is enabled in the arena.
    boolean
    Check if teams will start with max upgrades in the arena.
    boolean
    Check if one-hit kill is enabled in the arena.
    boolean
    Check if this buff state is still valid for its arena.
    void
    setBaseSpawnersOnly(boolean baseSpawnersOnly)
    Set whether only base spawners are active in the arena.
    void
    setBlocksProtected(boolean blocksProtected)
    Set whether blocks are protected in restricted areas in the arena.
    void
    setCraftingAllowed(boolean isCraftingAllowed)
    Set whether crafting is allowed in the arena.
    void
    setFallDamageEnabled(boolean fallDamageEnabled)
    Set whether fall damage is enabled in the arena.
    void
    setHealth(int health)
    Set the health players will have in the arena.
    void
    setLowGravity(boolean lowGravity)
    Set whether low gravity is enabled in the arena.
    void
    setMaxUpgrades(boolean maxUpgrades)
    Set whether teams will start with max upgrades in the arena.
    void
    setOneHitKill(boolean oneHitKill)
    Set whether one-hit kill is enabled in the arena.
    void
    setRespawnTime(int respawnTime)
    Set the respawn time for players in the arena.
    void
    setSpeedAmplification(int speedAmplification)
    Set the movement speed amplification level for players in the arena.
  • Method Details

    • getArena

      Arena getArena()
      Get the arena associated with this buff state.
      Returns:
      The arena
    • isValid

      boolean isValid()
      Check if this buff state is still valid for its arena.
      Returns:
      true if valid, false otherwise
    • setHealth

      void setHealth(int health)
      Set the health players will have in the arena.

      Default value is 20.

      Parameters:
      health - The health value to set
    • getHealth

      int getHealth()
      Get the health players have in the arena.

      Default value is 20.

      Returns:
      The health value
    • setRespawnTime

      void setRespawnTime(int respawnTime)
      Set the respawn time for players in the arena.

      Default value is 5 seconds.

      Parameters:
      respawnTime - The respawn time in seconds
    • getRespawnTime

      int getRespawnTime()
      Get the respawn time for players in the arena.

      Default value is 5 seconds.

      Returns:
      The respawn time in seconds
    • setOneHitKill

      void setOneHitKill(boolean oneHitKill)
      Set whether one-hit kill is enabled in the arena.

      Default value is false.

      Parameters:
      oneHitKill - true to enable, false to disable
    • isOneHitKill

      boolean isOneHitKill()
      Check if one-hit kill is enabled in the arena.

      Default value is false.

      Returns:
      true if enabled, false otherwise
    • setBaseSpawnersOnly

      void setBaseSpawnersOnly(boolean baseSpawnersOnly)
      Set whether only base spawners are active in the arena.

      Default value is false.

      Parameters:
      baseSpawnersOnly - true to enable, false to disable
    • isBaseSpawnersOnly

      boolean isBaseSpawnersOnly()
      Check if only base spawners are active in the arena.

      Default value is false.

      Returns:
      true if enabled, false otherwise
    • setLowGravity

      void setLowGravity(boolean lowGravity)
      Set whether low gravity is enabled in the arena.

      Default value is false.

      Parameters:
      lowGravity - true to enable, false to disable
    • isLowGravity

      boolean isLowGravity()
      Check if low gravity is enabled in the arena.

      Default value is false.

      Returns:
      true if enabled, false otherwise
    • setSpeedAmplification

      void setSpeedAmplification(int speedAmplification)
      Set the movement speed amplification level for players in the arena.

      Default value is -1 (no amplification).

      Parameters:
      speedAmplification - The speed amplification level to set (0 = level 1)
    • getSpeedAmplification

      int getSpeedAmplification()
      Get the movement speed amplification level for players in the arena.

      Default value is -1 (no amplification).

      Returns:
      The speed amplification level (0 = level 1)
    • setMaxUpgrades

      void setMaxUpgrades(boolean maxUpgrades)
      Set whether teams will start with max upgrades in the arena.

      Default value is false.

      Parameters:
      maxUpgrades - true to enable, false to disable
    • isMaxUpgrades

      boolean isMaxUpgrades()
      Check if teams will start with max upgrades in the arena.

      Default value is false.

      Returns:
      true if enabled, false otherwise
    • setFallDamageEnabled

      void setFallDamageEnabled(boolean fallDamageEnabled)
      Set whether fall damage is enabled in the arena.

      Default value is true.

      Parameters:
      fallDamageEnabled - true to enable, false to disable
    • isFallDamageEnabled

      boolean isFallDamageEnabled()
      Check if fall damage is enabled in the arena.

      Default value is true.

      Returns:
      true if enabled, false otherwise
    • setCraftingAllowed

      void setCraftingAllowed(boolean isCraftingAllowed)
      Set whether crafting is allowed in the arena.

      Default value is false.

      Parameters:
      isCraftingAllowed - true to enable, false to disable
    • isCraftingAllowed

      boolean isCraftingAllowed()
      Check if crafting is allowed in the arena.

      Default value is false.

      Returns:
      true if enabled, false otherwise
    • setBlocksProtected

      void setBlocksProtected(boolean blocksProtected)
      Set whether blocks are protected in restricted areas in the arena.

      Default value is true.

      Parameters:
      blocksProtected - true to enable, false to disable
    • isBlocksProtected

      boolean isBlocksProtected()
      Check if blocks are protected in restricted areas in the arena.

      Default value is true.

      Returns:
      true if enabled, false otherwise