public interface Arena
| Modifier and Type | Method and Description |
|---|---|
Match |
getMatch()
The
Match being played in this arena. |
java.lang.String |
getName()
The name of this arena.
|
org.bukkit.Location |
getPosition(int pos)
The spawnpoint set for the position number.
|
boolean |
has(org.bukkit.entity.Player player)
Whether or not the player is playing in this arena.
|
boolean |
isDisabled()
Whether or not this arena is currently disabled.
|
boolean |
isRemoved()
Whether or not this
Arena has been removed. |
boolean |
isUsed()
Whether or not a duel is currently being played in this arena.
|
boolean |
setDisabled(boolean disabled)
Calls
setDisabled(CommandSender, boolean) with the source being null. |
boolean |
setDisabled(org.bukkit.command.CommandSender source,
boolean disabled)
Disables this arena which prevents it from being used in duels.
|
boolean |
setPosition(int pos,
org.bukkit.Location location)
Calls
setPosition(Player, int, Location) with the source being null. |
boolean |
setPosition(org.bukkit.entity.Player source,
int pos,
org.bukkit.Location location)
Sets a spawnpoint with the given position and location.
|
@NotNull java.lang.String getName()
String that is the name of this arena.boolean isDisabled()
setDisabled(CommandSender, boolean)boolean setDisabled(@Nullable
org.bukkit.command.CommandSender source,
boolean disabled)
ArenaStateChangeEvent.source - CommandSender that will be the source of the ArenaStateChangeEvent called. May be null!disabled - True to disable the arena, False to enable.ArenaStateChangeEvent was cancelled by a plugin.boolean setDisabled(boolean disabled)
setDisabled(CommandSender, boolean) with the source being null.ArenaStateChangeEvent was cancelled by a plugin.setDisabled(CommandSender, boolean)@Nullable org.bukkit.Location getPosition(int pos)
pos - Position number associated with the spawnpointLocation associated with the position number or null if position is unset.boolean setPosition(@Nullable
org.bukkit.entity.Player source,
int pos,
@NotNull
org.bukkit.Location location)
ArenaSetPositionEvent.source - Player that will be the source of the ArenaSetPositionEvent called. May be null!pos - Position number for the spawnpoint.location - Location to be the spawnpoint. Should not be null!ArenaSetPositionEvent was cancelled by a plugin.boolean setPosition(int pos,
@NotNull
org.bukkit.Location location)
setPosition(Player, int, Location) with the source being null.ArenaSetPositionEvent was cancelled by a plugin.setPosition(Player, int, Location)boolean isUsed()
getMatch() is guaranteed to return a Match instance.@Nullable Match getMatch()
Match being played in this arena. May be null if no match is being played.Match instance if a duel is currently being played in this arena. null otherwise.boolean has(@NotNull
org.bukkit.entity.Player player)
player - Player to check if in this arena. Should not be null!boolean isRemoved()
Arena has been removed.Arena has been removed. False otherwise.ArenaRemoveEvent