Interface Scoreboard
- All Superinterfaces:
Audience, ForwardingAudience, PacketGroupingAudience, Pointered, Viewable
- All Known Implementing Classes:
BelowNameTag, Sidebar, TabList
This interface represents all scoreboard of Minecraft.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ForwardingAudience
ForwardingAudience.Single -
Method Summary
Modifier and TypeMethodDescriptiondefault ScoreboardObjectivePacketDeprecated.default ScoreboardObjectivePacketCreates a creation objective packet.default ScoreboardObjectivePacketCreates the destruction objective packet.default DisplayScoreboardPacketgetDisplayScoreboardPacket(byte position) Creates theDisplayScoreboardPacket.Gets the objective name of the scoreboard.default Collection<Player> Gets an iterable of the players this audience contains.default voidupdateScore(Player player, int score) Updates the score of aPlayer.Methods inherited from interface Audience
deleteMessage, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, showTitle, stopSoundMethods inherited from interface ForwardingAudience
clearResourcePacks, closeDialog, deleteMessage, filterAudience, forEachAudience, openBook, playSound, pointers, removeResourcePacks, removeResourcePacks, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendResourcePacks, showDialogMethods inherited from interface PacketGroupingAudience
audiences, clearTitle, hideBossBar, playSound, playSound, playSound, resetTitle, sendActionBar, sendGroupedPacket, sendMessage, sendNotification, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSoundMethods inherited from interface Pointered
get, getOrDefault, getOrDefaultFromMethods inherited from interface Viewable
addViewer, getViewers, getViewersAsAudience, getViewersAsAudiences, isViewer, removeViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers, sendPacketToViewersAndSelf
-
Method Details
-
getCreationObjectivePacket
@Deprecated default ScoreboardObjectivePacket getCreationObjectivePacket(String value, ScoreboardObjectivePacket.Type type) Creates a creation objective packet.- Parameters:
value- The value for the objectivetype- The type for the objective- Returns:
- the creation objective packet
-
getCreationObjectivePacket
default ScoreboardObjectivePacket getCreationObjectivePacket(Component value, ScoreboardObjectivePacket.Type type) Creates a creation objective packet.- Parameters:
value- The value for the objectivetype- The type for the objective- Returns:
- the creation objective packet
-
getDestructionObjectivePacket
Creates the destruction objective packet.- Returns:
- the destruction objective packet
-
getDisplayScoreboardPacket
Creates theDisplayScoreboardPacket.- Parameters:
position- The position of the scoreboard- Returns:
- the created display scoreboard packet
-
updateScore
-
getObjectiveName
-
getPlayers
Description copied from interface:PacketGroupingAudienceGets an iterable of the players this audience contains.- Specified by:
getPlayersin interfacePacketGroupingAudience- Returns:
- the connections
-
getCreationObjectivePacket(Component, ScoreboardObjectivePacket.Type)