ArenaManagerpublic class CoreArenaManager extends java.lang.Object implements ArenaManager
| Constructor | Description |
|---|---|
CoreArenaManager(Game game) |
| 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.
|
public CoreArenaManager(Game game)
public Arena getArena(java.lang.String name)
ArenaManagergetArena in interface ArenaManagername - the name of the arena to search forpublic void removeArena(Arena arena)
ArenaManagerremoveArena in interface ArenaManagerarena - the arena to removepublic void loadArenas()
ArenaManagerloadArenas in interface ArenaManagerpublic void clearArenas()
ArenaManagerclearArenas in interface ArenaManagerpublic ArenaEditor createEditor(java.lang.String name, GamePlayer player)
ArenaManagercreateEditor in interface ArenaManagername - the name of the arena to create the edit session forplayer - the entity to apply the editing session toArenaEditorpublic ArenaMenu getMenu()
ArenaManagergetMenu in interface ArenaManagerpublic boolean createSchematic(GamePlayer player, java.lang.String name)
ArenaManagercreateSchematic in interface ArenaManagerplayer - the GamePlayer to whose Player is associated with the selectionname - the name of the schematicpublic void setLobby(org.bukkit.Location location)
ArenaManagersetLobby in interface ArenaManagerlocation - the new lobby locationpublic java.util.Map<java.lang.String,java.util.List<Arena>> getArenaMap()
ArenaManagergetArenaMap in interface ArenaManagerpublic void setArenaClass(java.lang.Class<? extends Arena> newClass)
ArenaManagersetArenaClass in interface ArenaManagernewClass - the new Java class to use for arenasCoreArenapublic boolean isArenaWorld(org.bukkit.World world)
ArenaManagerisArenaWorld in interface ArenaManagerworld - the world to checkpublic void deleteWorld(org.bukkit.World world)
ArenaManagerdeleteWorld in interface ArenaManagerworld - the World to delete