CoreArenaManager
public interface ArenaManager
Modifier and Type | Method | Description |
---|---|---|
void |
clearArenas() |
Unload and delete all arena worlds.
|
ArenaEditor |
createEditor(java.lang.String name,
GamePlayer player) |
Creates an editing session for an arena.
|
boolean |
createSchematic(GamePlayer player,
java.lang.String name) |
Creates a schematic from the player's WorldEdit selection and places the schematic in the game's schematic folder.
|
void |
deleteWorld(org.bukkit.World world) |
Unloads a World from Bukkit and deletes it from the disk.
|
Arena |
getArena(java.lang.String name) |
Gets the arena with a certain name.
|
java.util.Map<java.lang.String,java.util.List<Arena>> |
getArenaMap() |
Gets the map of all active arenas, where the key is the name of the arena and the list is all arenas running for that map.
|
ArenaMenu |
getMenu() |
Gets the ArenaMenu object
|
boolean |
isArenaWorld(org.bukkit.World world) |
Check if a World belongs to an Arena.
|
void |
loadArenas() |
Loads stored data for arenas into memory.
|
void |
removeArena(Arena arena) |
Removes an Arena object from memory.
|
void |
setArenaClass(java.lang.Class<? extends Arena> newClass) |
Alters the Java class to be used for arenas, in case a game wishes to use a custom arena class.
|
void |
setLobby(org.bukkit.Location location) |
Sets the global lobby the location.
|
Arena getArena(java.lang.String name)
name
- the name of the arena to search forvoid removeArena(Arena arena)
arena
- the arena to removevoid loadArenas()
void clearArenas()
ArenaEditor createEditor(java.lang.String name, GamePlayer player)
name
- the name of the arena to create the edit session forplayer
- the entity to apply the editing session toArenaEditor
ArenaMenu getMenu()
boolean createSchematic(GamePlayer player, java.lang.String name)
player
- the GamePlayer to whose Player is associated with the selectionname
- the name of the schematicvoid setLobby(org.bukkit.Location location)
location
- the new lobby locationjava.util.Map<java.lang.String,java.util.List<Arena>> getArenaMap()
void setArenaClass(java.lang.Class<? extends Arena> newClass)
newClass
- the new Java class to use for arenasCoreArena
boolean isArenaWorld(org.bukkit.World world)
world
- the world to checkvoid deleteWorld(org.bukkit.World world)
world
- the World to delete