package net.knarcraft.dropper.arena; import org.jetbrains.annotations.NotNull; /** * A representation of each key used for storing arena data */ public enum ArenaStorageKey { /** * The key for an arena's id */ ID("arenaId"), /** * The key for an arena's name */ NAME("arenaName"), /** * The key for an arena's spawn location */ SPAWN_LOCATION("arenaSpawnLocation"), /** * The key for an arena's exit location */ EXIT_LOCATION("arenaExitLocation"), /** * The key for a player in this arena's vertical velocity */ PLAYER_VERTICAL_VELOCITY("arenaPlayerVerticalVelocity"), /** * The key for a player in this arena's horizontal velocity */ PLAYER_HORIZONTAL_VELOCITY("arenaPlayerHorizontalVelocity"), /** * The key for the type of this arena's win block */ WIN_BLOCK_TYPE("winBlockType"), /** * The hey for this arena's data */ DATA("arenaData"), ; private final @NotNull String key; /** * Instantiates a new arena storage key * * @param key
The string path of the configuration key this value represents.
*/ ArenaStorageKey(@NotNull String key) { this.key = key; } /** * Gets the configuration key this enum represents * * @returnThe string key representation.
*/ public @NotNull String getKey() { return this.key; } }