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)
Arena
public void removePlayer(GamePlayer player)
Arena
removePlayer
in interface Arena
player
- the GamePlayer to removepublic boolean addSpectator(GamePlayer player)
Arena
addSpectator
in interface Arena
player
- the GamePlayer to attempt to addpublic void removeSpectator(GamePlayer player)
Arena
removeSpectator
in interface Arena
player
- the GamePlayer to removepublic void spawnPlayer(GamePlayer player)
Arena
spawnPlayer
in interface Arena
player
- the entity to spawnpublic void countdown()
Arena
public void start()
Arena
public void end()
Arena
public java.util.List<GamePlayer> getPlayers()
Arena
getPlayers
in interface Arena
public java.util.List<GamePlayer> getSpectators()
Arena
getSpectators
in interface Arena
public GameState getState()
Arena
public ScoreboardManager getScoreboard()
Arena
getScoreboard
in interface Arena
ScoreboardManager
public java.lang.String getName()
Arena
public void addSpawn(org.bukkit.Location spawn)
Arena
public void addSpawn(org.bukkit.Location spawn, Team team)
Arena
public void setPregame(org.bukkit.Location pregame)
Arena
setPregame
in interface Arena
pregame
- the location to teleport players before the gamepublic org.bukkit.Location getPregame()
Arena
getPregame
in interface Arena
public void setSpectatorSpawn(org.bukkit.Location spectatorSpawn)
Arena
setSpectatorSpawn
in interface Arena
spectatorSpawn
- the location to teleport spectators initially