Package net.glowstone.scoreboard
Class GlowScoreboard
java.lang.Object
net.glowstone.scoreboard.GlowScoreboard
- All Implemented Interfaces:
org.bukkit.scoreboard.Scoreboard
Scoreboard implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearSlot
(org.bukkit.scoreboard.DisplaySlot slot) org.bukkit.scoreboard.Team
getEntryTeam
(String entry) org.bukkit.scoreboard.Objective
getObjective
(String name) org.bukkit.scoreboard.Objective
getObjective
(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.Team
getPlayerTeam
(org.bukkit.OfflinePlayer player) Set<org.bukkit.scoreboard.Score>
Set<org.bukkit.scoreboard.Score>
getScores
(org.bukkit.OfflinePlayer player) org.bukkit.scoreboard.Team
Set<org.bukkit.scoreboard.Team>
getTeams()
@NotNull org.bukkit.scoreboard.Objective
registerNewObjective
(@NotNull String s, @NotNull String s1, @Nullable net.kyori.adventure.text.Component component) @NotNull org.bukkit.scoreboard.Objective
registerNewObjective
(@NotNull String s, @NotNull String s1, @Nullable net.kyori.adventure.text.Component component, @NotNull org.bukkit.scoreboard.RenderType renderType) org.bukkit.scoreboard.Objective
registerNewObjective
(String name, String criteria) org.bukkit.scoreboard.Objective
registerNewObjective
(String name, String criteria, String displayName) org.bukkit.scoreboard.Objective
registerNewObjective
(String name, String criteria, String displayName, org.bukkit.scoreboard.RenderType renderType) org.bukkit.scoreboard.Team
registerNewTeam
(String name) void
resetScores
(String entry) void
resetScores
(org.bukkit.OfflinePlayer player) void
subscribe
(GlowPlayer player) Send a player this scoreboard's contents and subscribe them to future changes.void
unsubscribe
(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:
registerNewObjective
in 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:
registerNewObjective
in 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:
registerNewObjective
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
registerNewObjective
public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria, String displayName) throws IllegalArgumentException - Specified by:
registerNewObjective
in 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:
registerNewObjective
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getObjective
- Specified by:
getObjective
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getObjective
public org.bukkit.scoreboard.Objective getObjective(org.bukkit.scoreboard.DisplaySlot slot) throws IllegalArgumentException - Specified by:
getObjective
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getObjectivesByCriteria
public Set<org.bukkit.scoreboard.Objective> getObjectivesByCriteria(String criteria) throws IllegalArgumentException - Specified by:
getObjectivesByCriteria
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getObjectives
- Specified by:
getObjectives
in interfaceorg.bukkit.scoreboard.Scoreboard
-
clearSlot
- Specified by:
clearSlot
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
registerNewTeam
- Specified by:
registerNewTeam
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getPlayerTeam
public org.bukkit.scoreboard.Team getPlayerTeam(org.bukkit.OfflinePlayer player) throws IllegalArgumentException - Specified by:
getPlayerTeam
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getEntryTeam
- Specified by:
getEntryTeam
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getTeam
- Specified by:
getTeam
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getTeams
- Specified by:
getTeams
in interfaceorg.bukkit.scoreboard.Scoreboard
-
getEntries
- Specified by:
getEntries
in interfaceorg.bukkit.scoreboard.Scoreboard
-
getScores
- Specified by:
getScores
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getScores
public Set<org.bukkit.scoreboard.Score> getScores(org.bukkit.OfflinePlayer player) throws IllegalArgumentException - Specified by:
getScores
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
resetScores
- Specified by:
resetScores
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
resetScores
- Specified by:
resetScores
in interfaceorg.bukkit.scoreboard.Scoreboard
- Throws:
IllegalArgumentException
-
getPlayers
- Specified by:
getPlayers
in interfaceorg.bukkit.scoreboard.Scoreboard
-