ArenaEditorpublic class CoreArenaEditor extends java.lang.Object implements ArenaEditor
| Constructor | Description |
|---|---|
CoreArenaEditor(Game game,
org.bukkit.World world,
java.lang.String name,
GamePlayer player) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addSpawn() |
Adds a new spawn at the players current location.
|
void |
close() |
Closes the editing session and returns the entity to their previous state.
|
org.bukkit.inventory.Inventory |
getMenu() |
Gets the inventory menu for the ArenaEditor.
|
GamePlayer |
getPlayer() |
Gets the GamePlayer associated with the ArenaEditor
|
ArenaEditor |
open() |
Opens the editing session.
|
void |
removeSpawn() |
Removes the spawn at the players current location, if one exists.
|
void |
setPregame() |
Sets the pregame spawn to the player's current location.
|
void |
setSpectator() |
Sets the spectator spawn to the player's current location.
|
public CoreArenaEditor(Game game, org.bukkit.World world, java.lang.String name, GamePlayer player)
public ArenaEditor open()
ArenaEditoropen in interface ArenaEditorpublic void close()
ArenaEditorclose in interface ArenaEditorpublic void addSpawn()
ArenaEditoraddSpawn in interface ArenaEditorpublic void removeSpawn()
ArenaEditorremoveSpawn in interface ArenaEditorpublic void setPregame()
ArenaEditorsetPregame in interface ArenaEditorpublic void setSpectator()
ArenaEditorsetSpectator in interface ArenaEditorpublic GamePlayer getPlayer()
ArenaEditorgetPlayer in interface ArenaEditorpublic org.bukkit.inventory.Inventory getMenu()
ArenaEditorgetMenu in interface ArenaEditor