Parkour implementation safety save 4

This is just a safety save in case the code gets too broken to fix.
This commit is contained in:
2023-04-14 14:45:59 +02:00
parent 8f77fc5910
commit 12789980c0
16 changed files with 475 additions and 550 deletions

View File

@ -0,0 +1,47 @@
package net.knarcraft.minigames.arena;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
/**
* An interface describing an arena
*/
public interface Arena {
/**
* Gets the data stored for this arena
*
* @return <p>The stored data</p>
*/
ArenaData getData();
/**
* Gets the id of this arena
*
* @return <p>This arena's identifier</p>
*/
@NotNull UUID getArenaId();
/**
* Gets this arena's sanitized name
*
* @return <p>This arena's sanitized name</p>
*/
@NotNull String getArenaNameSanitized();
/**
* Removes the data file belonging to this arena
*
* @return <p>True if successfully removed</p>
*/
boolean removeData();
/**
* Saves this arena's data
*
* @return <p>True if successfully saved</p>
*/
boolean saveData();
}