ArenaEditor
public 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()
ArenaEditor
open
in interface ArenaEditor
public void close()
ArenaEditor
close
in interface ArenaEditor
public void addSpawn()
ArenaEditor
addSpawn
in interface ArenaEditor
public void removeSpawn()
ArenaEditor
removeSpawn
in interface ArenaEditor
public void setPregame()
ArenaEditor
setPregame
in interface ArenaEditor
public void setSpectator()
ArenaEditor
setSpectator
in interface ArenaEditor
public GamePlayer getPlayer()
ArenaEditor
getPlayer
in interface ArenaEditor
public org.bukkit.inventory.Inventory getMenu()
ArenaEditor
getMenu
in interface ArenaEditor