Package com.xyrisdev.cloud.arena.model
Class DuelArena
java.lang.Object
com.xyrisdev.cloud.arena.model.DuelArena
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new kit to the list of kits for the arena.getSchem()
Gets the file for the schematic of the arena.void
Removes a kit from the list of kits for the arena.void
Toggles the "in use" state of the arena.void
Toggles the "regeneration" state of the arena.
-
Constructor Details
-
DuelArena
public DuelArena()
-
-
Method Details
-
addKit
Adds a new kit to the list of kits for the arena.If the kit is already present, it will not be added again.
- Parameters:
kit
- The name of the kit to add.
-
removeKit
Removes a kit from the list of kits for the arena.If the kit is not present, nothing will happen.
- Parameters:
kit
- The name of the kit to remove.
-
toggleInUse
public void toggleInUse()Toggles the "in use" state of the arena.If the arena is currently in use, it will be set to not in use, and vice versa.
-
toggleRegeneration
public void toggleRegeneration()Toggles the "regeneration" state of the arena.If the arena is currently regenerating, it will stop regenerating, and vice versa.
-
getSchem
Gets the file for the schematic of the arena.This file is used for regenerating the arena from a WorldEdit schematic.
- Returns:
- The file representing the arena's schematic.
-