mirror of
				https://github.com/SunNetservers/MiniGames.git
				synced 2025-10-31 17:53:45 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| 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 <p>The string path of the configuration key this value represents.</p>
 | |
|      */
 | |
|     ArenaStorageKey(@NotNull String key) {
 | |
|         this.key = key;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Gets the configuration key this enum represents
 | |
|      *
 | |
|      * @return <p>The string key representation.</p>
 | |
|      */
 | |
|     public @NotNull String getKey() {
 | |
|         return this.key;
 | |
|     }
 | |
| 
 | |
| }
 | 
