@NonnullByDefault public interface Scoreboard<T extends ScoreboardTeam,O extends ScoreboardObjective>
| Modifier and Type | Method and Description |
|---|---|
default O |
createObjective(String title,
DisplaySlot displaySlot)
Creates a new scoreboard objective with an automatically generated id
|
default O |
createObjective(String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new scoreboard objective with an automatically generated id
|
default O |
createObjective(String id,
String title,
DisplaySlot displaySlot)
Creates a new scoreboard objective
|
O |
createObjective(String id,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new scoreboard objective
|
default O |
createPlayerObjective(Player player,
String title,
DisplaySlot displaySlot)
Creates a new per-player scoreboard objective with an automatically generated id
|
default O |
createPlayerObjective(Player player,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new per-player scoreboard objective with an automatically generated id
|
default O |
createPlayerObjective(Player player,
String id,
String title,
DisplaySlot displaySlot)
Creates a new per-player scoreboard objective
|
O |
createPlayerObjective(Player player,
String id,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new per-player scoreboard objective
|
default T |
createPlayerTeam(Player player,
String title)
Creates a new per-player scoreboard team with an automatically generated id
|
default T |
createPlayerTeam(Player player,
String title,
boolean autoSubscribe)
Creates a new per-player scoreboard team with an automatically generated id
|
default T |
createPlayerTeam(Player player,
String id,
String title)
Creates a new per-player scoreboard team
|
T |
createPlayerTeam(Player player,
String id,
String title,
boolean autoSubscribe)
Creates a new per-player scoreboard team
|
default T |
createTeam(String title)
Creates a new scoreboard team with an automatically generated id
|
default T |
createTeam(String title,
boolean autoSubscribe)
Creates a new scoreboard team with an automatically generated id
|
default T |
createTeam(String id,
String title)
Creates a new scoreboard team
|
T |
createTeam(String id,
String title,
boolean autoSubscribe)
Creates a new scoreboard team
|
static PacketScoreboard |
get()
Gets the global scoreboard instance.
|
O |
getObjective(String id)
Gets an existing scoreboard objective if one with the id exists
|
O |
getPlayerObjective(Player player,
String id)
Gets an existing per-player scoreboard objective if one with the id exists
|
T |
getPlayerTeam(Player player,
String id)
Gets an existing per-player scoreboard team if one with the id exists
|
T |
getTeam(String id)
Gets an existing scoreboard team if one with the id exists
|
boolean |
removeObjective(String id)
Removes a scoreboard objective from this scoreboard
|
boolean |
removePlayerObjective(Player player,
String id)
Removes a per-player scoreboard objective from this scoreboard
|
boolean |
removePlayerTeam(Player player,
String id)
Removes a per-player scoreboard team from this scoreboard
|
boolean |
removeTeam(String id)
Removes a scoreboard team from this scoreboard
|
@Nonnull static PacketScoreboard get()
T createTeam(String id, String title, boolean autoSubscribe)
id - the id of the teamtitle - the initial title for the teamautoSubscribe - if players should be automatically subscribedIllegalStateException - if a team with the same id already existsdefault T createTeam(String id, String title)
id - the id of the teamtitle - the initial title for the teamIllegalStateException - if a team with the same id already existsdefault T createTeam(String title, boolean autoSubscribe)
title - the initial title for the teamautoSubscribe - if players should be automatically subscribeddefault T createTeam(String title)
title - the initial title for the team@Nullable T getTeam(String id)
id - the id of the teamboolean removeTeam(String id)
id - the id of the teamO createObjective(String id, String title, DisplaySlot displaySlot, boolean autoSubscribe)
id - the id of the objectivetitle - the initial title for the objectivedisplaySlot - the display slot to use for this objectiveautoSubscribe - if players should be automatically subscribedIllegalStateException - if an objective with the same id already existsdefault O createObjective(String id, String title, DisplaySlot displaySlot)
id - the id of the objectivetitle - the initial title for the objectivedisplaySlot - the display slot to use for this objectiveIllegalStateException - if an objective with the same id already existsdefault O createObjective(String title, DisplaySlot displaySlot, boolean autoSubscribe)
title - the initial title for the objectivedisplaySlot - the display slot to use for this objectiveautoSubscribe - if players should be automatically subscribeddefault O createObjective(String title, DisplaySlot displaySlot)
title - the initial title for the objectivedisplaySlot - the display slot to use for this objective@Nullable O getObjective(String id)
id - the id of the objectiveboolean removeObjective(String id)
id - the id of the objectiveT createPlayerTeam(Player player, String id, String title, boolean autoSubscribe)
player - the player to make the team forid - the id of the teamtitle - the initial title of the teamautoSubscribe - if players should be automatically subscribedIllegalStateException - if a team with the same id already existsdefault T createPlayerTeam(Player player, String id, String title)
player - the player to make the team forid - the id of the teamtitle - the initial title of the teamIllegalStateException - if a team with the same id already existsdefault T createPlayerTeam(Player player, String title, boolean autoSubscribe)
player - the player to make the team fortitle - the initial title of the teamautoSubscribe - if players should be automatically subscribeddefault T createPlayerTeam(Player player, String title)
player - the player to make the team fortitle - the initial title of the team@Nullable T getPlayerTeam(Player player, String id)
player - the player to get the team forid - the id of the teamboolean removePlayerTeam(Player player, String id)
player - the player to remove the team forid - the id of the teamO createPlayerObjective(Player player, String id, String title, DisplaySlot displaySlot, boolean autoSubscribe)
player - the player to make the objective forid - the id of the objectivetitle - the initial title of the objectivedisplaySlot - the display slot to use for this objectiveautoSubscribe - if players should be automatically subscribedIllegalStateException - if an objective with the same id already existsdefault O createPlayerObjective(Player player, String id, String title, DisplaySlot displaySlot)
player - the player to make the objective forid - the id of the objectivetitle - the initial title of the objectivedisplaySlot - the display slot to use for this objectiveIllegalStateException - if an objective with the same id already existsdefault O createPlayerObjective(Player player, String title, DisplaySlot displaySlot, boolean autoSubscribe)
player - the player to make the objective fortitle - the initial title of the objectivedisplaySlot - the display slot to use for this objectivedefault O createPlayerObjective(Player player, String title, DisplaySlot displaySlot)
player - the player to make the objective fortitle - the initial title of the objectivedisplaySlot - the display slot to use for this objective@Nullable O getPlayerObjective(Player player, String id)
player - the player to get the objective forid - the id of the objectiveCopyright © 2017. All rights reserved.