@NonnullByDefault public interface Scoreboard
| Modifier and Type | Method and Description |
|---|---|
default ScoreboardObjective |
createObjective(String title,
DisplaySlot displaySlot)
Creates a new scoreboard objective with an automatically generated id
|
default ScoreboardObjective |
createObjective(String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new scoreboard objective with an automatically generated id
|
default ScoreboardObjective |
createObjective(String id,
String title,
DisplaySlot displaySlot)
Creates a new scoreboard objective
|
ScoreboardObjective |
createObjective(String id,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new scoreboard objective
|
default ScoreboardObjective |
createPlayerObjective(Player player,
String title,
DisplaySlot displaySlot)
Creates a new per-player scoreboard objective with an automatically generated id
|
default ScoreboardObjective |
createPlayerObjective(Player player,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new per-player scoreboard objective with an automatically generated id
|
default ScoreboardObjective |
createPlayerObjective(Player player,
String id,
String title,
DisplaySlot displaySlot)
Creates a new per-player scoreboard objective
|
ScoreboardObjective |
createPlayerObjective(Player player,
String id,
String title,
DisplaySlot displaySlot,
boolean autoSubscribe)
Creates a new per-player scoreboard objective
|
default ScoreboardTeam |
createPlayerTeam(Player player,
String title)
Creates a new per-player scoreboard team with an automatically generated id
|
default ScoreboardTeam |
createPlayerTeam(Player player,
String title,
boolean autoSubscribe)
Creates a new per-player scoreboard team with an automatically generated id
|
default ScoreboardTeam |
createPlayerTeam(Player player,
String id,
String title)
Creates a new per-player scoreboard team
|
ScoreboardTeam |
createPlayerTeam(Player player,
String id,
String title,
boolean autoSubscribe)
Creates a new per-player scoreboard team
|
default ScoreboardTeam |
createTeam(String title)
Creates a new scoreboard team with an automatically generated id
|
default ScoreboardTeam |
createTeam(String title,
boolean autoSubscribe)
Creates a new scoreboard team with an automatically generated id
|
default ScoreboardTeam |
createTeam(String id,
String title)
Creates a new scoreboard team
|
ScoreboardTeam |
createTeam(String id,
String title,
boolean autoSubscribe)
Creates a new scoreboard team
|
ScoreboardObjective |
getObjective(String id)
Gets an existing scoreboard objective if one with the id exists
|
ScoreboardObjective |
getPlayerObjective(Player player,
String id)
Gets an existing per-player scoreboard objective if one with the id exists
|
ScoreboardTeam |
getPlayerTeam(Player player,
String id)
Gets an existing per-player scoreboard team if one with the id exists
|
ScoreboardTeam |
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
|
ScoreboardTeam 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 ScoreboardTeam 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 ScoreboardTeam createTeam(String title, boolean autoSubscribe)
title - the initial title for the teamautoSubscribe - if players should be automatically subscribeddefault ScoreboardTeam createTeam(String title)
title - the initial title for the team@Nullable ScoreboardTeam getTeam(String id)
id - the id of the teamboolean removeTeam(String id)
id - the id of the teamScoreboardObjective 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 ScoreboardObjective 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 ScoreboardObjective 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 ScoreboardObjective createObjective(String title, DisplaySlot displaySlot)
title - the initial title for the objectivedisplaySlot - the display slot to use for this objective@Nullable ScoreboardObjective getObjective(String id)
id - the id of the objectiveboolean removeObjective(String id)
id - the id of the objectiveScoreboardTeam 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 ScoreboardTeam 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 ScoreboardTeam 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 ScoreboardTeam createPlayerTeam(Player player, String title)
player - the player to make the team fortitle - the initial title of the team@Nullable ScoreboardTeam 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 teamScoreboardObjective 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 ScoreboardObjective 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 ScoreboardObjective 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 ScoreboardObjective 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 ScoreboardObjective getPlayerObjective(Player player, String id)
player - the player to get the objective forid - the id of the objectiveCopyright © 2020. All rights reserved.