Package me.harsh.privategamesaddon.api
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 TypeMethodDescriptiongetArena()Get the arena associated with this buff state.intGet the health players have in the arena.intGet the respawn time for players in the arena.intGet the movement speed amplification level for players in the arena.booleanCheck if only base spawners are active in the arena.booleanCheck if blocks are protected in restricted areas in the arena.booleanCheck if crafting is allowed in the arena.booleanCheck if fall damage is enabled in the arena.booleanCheck if low gravity is enabled in the arena.booleanCheck if teams will start with max upgrades in the arena.booleanCheck if one-hit kill is enabled in the arena.booleanisValid()Check if this buff state is still valid for its arena.voidsetBaseSpawnersOnly(boolean baseSpawnersOnly) Set whether only base spawners are active in the arena.voidsetBlocksProtected(boolean blocksProtected) Set whether blocks are protected in restricted areas in the arena.voidsetCraftingAllowed(boolean isCraftingAllowed) Set whether crafting is allowed in the arena.voidsetFallDamageEnabled(boolean fallDamageEnabled) Set whether fall damage is enabled in the arena.voidsetHealth(int health) Set the health players will have in the arena.voidsetLowGravity(boolean lowGravity) Set whether low gravity is enabled in the arena.voidsetMaxUpgrades(boolean maxUpgrades) Set whether teams will start with max upgrades in the arena.voidsetOneHitKill(boolean oneHitKill) Set whether one-hit kill is enabled in the arena.voidsetRespawnTime(int respawnTime) Set the respawn time for players in the arena.voidsetSpeedAmplification(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:
trueif valid,falseotherwise
-
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-trueto enable,falseto disable
-
isOneHitKill
boolean isOneHitKill()Check if one-hit kill is enabled in the arena.Default value is
false.- Returns:
trueif enabled,falseotherwise
-
setBaseSpawnersOnly
void setBaseSpawnersOnly(boolean baseSpawnersOnly) Set whether only base spawners are active in the arena.Default value is
false.- Parameters:
baseSpawnersOnly-trueto enable,falseto disable
-
isBaseSpawnersOnly
boolean isBaseSpawnersOnly()Check if only base spawners are active in the arena.Default value is
false.- Returns:
trueif enabled,falseotherwise
-
setLowGravity
void setLowGravity(boolean lowGravity) Set whether low gravity is enabled in the arena.Default value is
false.- Parameters:
lowGravity-trueto enable,falseto disable
-
isLowGravity
boolean isLowGravity()Check if low gravity is enabled in the arena.Default value is
false.- Returns:
trueif enabled,falseotherwise
-
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-trueto enable,falseto disable
-
isMaxUpgrades
boolean isMaxUpgrades()Check if teams will start with max upgrades in the arena.Default value is
false.- Returns:
trueif enabled,falseotherwise
-
setFallDamageEnabled
void setFallDamageEnabled(boolean fallDamageEnabled) Set whether fall damage is enabled in the arena.Default value is
true.- Parameters:
fallDamageEnabled-trueto enable,falseto disable
-
isFallDamageEnabled
boolean isFallDamageEnabled()Check if fall damage is enabled in the arena.Default value is
true.- Returns:
trueif enabled,falseotherwise
-
setCraftingAllowed
void setCraftingAllowed(boolean isCraftingAllowed) Set whether crafting is allowed in the arena.Default value is
false.- Parameters:
isCraftingAllowed-trueto enable,falseto disable
-
isCraftingAllowed
boolean isCraftingAllowed()Check if crafting is allowed in the arena.Default value is
false.- Returns:
trueif enabled,falseotherwise
-
setBlocksProtected
void setBlocksProtected(boolean blocksProtected) Set whether blocks are protected in restricted areas in the arena.Default value is
true.- Parameters:
blocksProtected-trueto enable,falseto disable
-
isBlocksProtected
boolean isBlocksProtected()Check if blocks are protected in restricted areas in the arena.Default value is
true.- Returns:
trueif enabled,falseotherwise
-