| Constructor | Description |
|---|---|
CoreArena(Game game,
java.lang.String name,
org.bukkit.World world) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addPlayer(GamePlayer player) |
Attempts to add a player to the arena.
|
void |
addSpawn(org.bukkit.Location spawn) |
Adds a spawn to the arena and categorizes it as a free-for-all spawn.
|
void |
addSpawn(org.bukkit.Location spawn,
Team team) |
Adds a spawn the the arena and associates it with a certain team
|
boolean |
addSpectator(GamePlayer player) |
Attempts to add a spectator to the arena.
|
void |
countdown() |
Begins the countdown in the arena, which signifies a transition from the lobby state to the in-game state.
|
void |
end() |
Ends the arena, removes all current players, and awards the winner(s).
|
java.lang.String |
getName() |
Gets the name of the map for the arena.
|
java.util.List<GamePlayer> |
getPlayers() |
Gets the list of players currently playing in the arena.
|
org.bukkit.Location |
getPregame() |
Gets the pregame teleport location for the arena.
|
ScoreboardManager |
getScoreboard() |
Gets the ScoreboardManager of the arena.
|
java.util.List<GamePlayer> |
getSpectators() |
Gets the list of players currently spectating the arena.
|
GameState |
getState() |
Gets the state of the arena.
|
org.bukkit.World |
getWorld() |
Gets the World of the arena.
|
void |
removePlayer(GamePlayer player) |
Removes a player from the arena if they are playing in it.
|
void |
removeSpectator(GamePlayer player) |
Removes a player from the arena if they are spectating it.
|
void |
setPregame(org.bukkit.Location pregame) |
Sets the pregame teleport location for the arena.
|
void |
setSpectatorSpawn(org.bukkit.Location spectatorSpawn) |
Sets the spectator teleport location for the arena.
|
void |
spawnPlayer(GamePlayer player) |
Spawns a entity in the arena.
|
void |
start() |
Starts the arena, and begins the in-game state.
|
public CoreArena(Game game, java.lang.String name, org.bukkit.World world)
public boolean addPlayer(GamePlayer player)
Arenapublic void removePlayer(GamePlayer player)
ArenaremovePlayer in interface Arenaplayer - the GamePlayer to removepublic boolean addSpectator(GamePlayer player)
ArenaaddSpectator in interface Arenaplayer - the GamePlayer to attempt to addpublic void removeSpectator(GamePlayer player)
ArenaremoveSpectator in interface Arenaplayer - the GamePlayer to removepublic void spawnPlayer(GamePlayer player)
ArenaspawnPlayer in interface Arenaplayer - the entity to spawnpublic void countdown()
Arenapublic void start()
Arenapublic void end()
Arenapublic java.util.List<GamePlayer> getPlayers()
ArenagetPlayers in interface Arenapublic java.util.List<GamePlayer> getSpectators()
ArenagetSpectators in interface Arenapublic GameState getState()
Arenapublic ScoreboardManager getScoreboard()
ArenagetScoreboard in interface ArenaScoreboardManagerpublic java.lang.String getName()
Arenapublic void addSpawn(org.bukkit.Location spawn)
Arenapublic void addSpawn(org.bukkit.Location spawn,
Team team)
Arenapublic void setPregame(org.bukkit.Location pregame)
ArenasetPregame in interface Arenapregame - the location to teleport players before the gamepublic org.bukkit.Location getPregame()
ArenagetPregame in interface Arenapublic void setSpectatorSpawn(org.bukkit.Location spectatorSpawn)
ArenasetSpectatorSpawn in interface ArenaspectatorSpawn - the location to teleport spectators initially