Interface ArenaLoaderAPI
public interface ArenaLoaderAPI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes an arena by its name.Retrieves all available arenas.int
Gets the total number of arenas.load()
Loads all available arenas.Loads a specific arena by its name.void
Saves a given DuelArena object.
-
Method Details
-
load
Loads a specific arena by its name.- Parameters:
name
- The name of the arena to load.- Returns:
- The DuelArena object for the given name, or null if no such arena exists.
-
load
Loads all available arenas.- Returns:
- A list of all DuelArena objects.
-
save
Saves a given DuelArena object.- Parameters:
arena
- The DuelArena object to save.
-
delete
Deletes an arena by its name.- Parameters:
name
- The name of the arena to delete.
-
getArenaCount
int getArenaCount()Gets the total number of arenas.- Returns:
- The count of all arenas.
-
getAllArenas
Retrieves all available arenas.- Returns:
- A list of all DuelArena objects.
-