Package net.glowstone.scoreboard
Class GlowScoreboard
java.lang.Object
net.glowstone.scoreboard.GlowScoreboard
- All Implemented Interfaces:
org.bukkit.scoreboard.Scoreboard
Scoreboard implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearSlot(org.bukkit.scoreboard.DisplaySlot slot) org.bukkit.scoreboard.TeamgetEntryTeam(String entry) org.bukkit.scoreboard.ObjectivegetObjective(String name) org.bukkit.scoreboard.ObjectivegetObjective(org.bukkit.scoreboard.DisplaySlot slot) Set<org.bukkit.scoreboard.Objective>Set<org.bukkit.scoreboard.Objective>getObjectivesByCriteria(String criteria) Set<org.bukkit.OfflinePlayer>org.bukkit.scoreboard.TeamgetPlayerTeam(org.bukkit.OfflinePlayer player) Set<org.bukkit.scoreboard.Score>Set<org.bukkit.scoreboard.Score>getScores(org.bukkit.OfflinePlayer player) org.bukkit.scoreboard.TeamSet<org.bukkit.scoreboard.Team>getTeams()@NotNull org.bukkit.scoreboard.ObjectiveregisterNewObjective(@NotNull String s, @NotNull String s1, @Nullable net.kyori.adventure.text.Component component) @NotNull org.bukkit.scoreboard.ObjectiveregisterNewObjective(@NotNull String s, @NotNull String s1, @Nullable net.kyori.adventure.text.Component component, @NotNull org.bukkit.scoreboard.RenderType renderType) org.bukkit.scoreboard.ObjectiveregisterNewObjective(String name, String criteria) org.bukkit.scoreboard.ObjectiveregisterNewObjective(String name, String criteria, String displayName) org.bukkit.scoreboard.ObjectiveregisterNewObjective(String name, String criteria, String displayName, org.bukkit.scoreboard.RenderType renderType) org.bukkit.scoreboard.TeamregisterNewTeam(String name) voidresetScores(String entry) voidresetScores(org.bukkit.OfflinePlayer player) voidsubscribe(GlowPlayer player) Send a player this scoreboard's contents and subscribe them to future changes.voidunsubscribe(GlowPlayer player) Clear the player's scoreboard contents and unsubscribe them from future changes.
-
Constructor Details
-
GlowScoreboard
public GlowScoreboard()
-
-
Method Details
-
subscribe
Send a player this scoreboard's contents and subscribe them to future changes.- Parameters:
player- The player to subscribe.
-
unsubscribe
Clear the player's scoreboard contents and unsubscribe them from future changes.- Parameters:
player- The player to unsubscribe.
-
registerNewObjective
public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria) throws IllegalArgumentException - Specified by:
registerNewObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
registerNewObjective
@NotNull public @NotNull org.bukkit.scoreboard.Objective registerNewObjective(@NotNull @NotNull String s, @NotNull @NotNull String s1, @Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalArgumentException - Specified by:
registerNewObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
registerNewObjective
@NotNull public @NotNull org.bukkit.scoreboard.Objective registerNewObjective(@NotNull @NotNull String s, @NotNull @NotNull String s1, @Nullable @Nullable net.kyori.adventure.text.Component component, @NotNull @NotNull org.bukkit.scoreboard.RenderType renderType) throws IllegalArgumentException - Specified by:
registerNewObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
registerNewObjective
public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria, String displayName) throws IllegalArgumentException - Specified by:
registerNewObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
registerNewObjective
public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria, String displayName, org.bukkit.scoreboard.RenderType renderType) throws IllegalArgumentException - Specified by:
registerNewObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getObjective
- Specified by:
getObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getObjective
public org.bukkit.scoreboard.Objective getObjective(org.bukkit.scoreboard.DisplaySlot slot) throws IllegalArgumentException - Specified by:
getObjectivein interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getObjectivesByCriteria
public Set<org.bukkit.scoreboard.Objective> getObjectivesByCriteria(String criteria) throws IllegalArgumentException - Specified by:
getObjectivesByCriteriain interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getObjectives
- Specified by:
getObjectivesin interfaceorg.bukkit.scoreboard.Scoreboard
-
clearSlot
- Specified by:
clearSlotin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
registerNewTeam
- Specified by:
registerNewTeamin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getPlayerTeam
public org.bukkit.scoreboard.Team getPlayerTeam(org.bukkit.OfflinePlayer player) throws IllegalArgumentException - Specified by:
getPlayerTeamin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getEntryTeam
- Specified by:
getEntryTeamin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getTeam
- Specified by:
getTeamin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getTeams
- Specified by:
getTeamsin interfaceorg.bukkit.scoreboard.Scoreboard
-
getEntries
- Specified by:
getEntriesin interfaceorg.bukkit.scoreboard.Scoreboard
-
getScores
- Specified by:
getScoresin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getScores
public Set<org.bukkit.scoreboard.Score> getScores(org.bukkit.OfflinePlayer player) throws IllegalArgumentException - Specified by:
getScoresin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
resetScores
- Specified by:
resetScoresin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
resetScores
- Specified by:
resetScoresin interfaceorg.bukkit.scoreboard.Scoreboard- Throws:
IllegalArgumentException
-
getPlayers
- Specified by:
getPlayersin interfaceorg.bukkit.scoreboard.Scoreboard
-