Class BelowNameTag
java.lang.Object
net.minestom.server.scoreboard.BelowNameTag
- All Implemented Interfaces:
Audience, ForwardingAudience, Pointered, PacketGroupingAudience, Scoreboard, Viewable
Represents a scoreboard which rendered a tag below the name.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ForwardingAudience
ForwardingAudience.Single -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWARNING: You shouldn't create scoreboards with the same prefix as those -
Constructor Summary
ConstructorsConstructorDescriptionBelowNameTag(String name, String value) Deprecated.BelowNameTag(String name, Component value) Creates a new below name scoreboard. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a viewer.Gets the objective name of the scoreboard.Gets all the viewers of this viewable element.booleanremoveViewer(Player player) Removes a viewer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Scoreboard
getCreationObjectivePacket, getCreationObjectivePacket, getDestructionObjectivePacket, getDisplayScoreboardPacket, getPlayers, updateScoreMethods inherited from interface Viewable
getViewersAsAudience, getViewersAsAudiences, isViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers, sendPacketToViewersAndSelf
-
Field Details
-
BELOW_NAME_TAG_PREFIX
WARNING: You shouldn't create scoreboards with the same prefix as those- See Also:
-
-
Constructor Details
-
BelowNameTag
Deprecated.Creates a new below name scoreboard.- Parameters:
name- The objective name of the scoreboardvalue- The value of the scoreboard
-
BelowNameTag
-
-
Method Details
-
getObjectiveName
Description copied from interface:ScoreboardGets the objective name of the scoreboard.- Specified by:
getObjectiveNamein interfaceScoreboard- Returns:
- the objective name
-
addViewer
-
removeViewer
Description copied from interface:ViewableRemoves a viewer.- Specified by:
removeViewerin interfaceViewable- Parameters:
player- the viewer to remove- Returns:
- true if the player has been removed, false otherwise (could be because he was not a viewer)
-
getViewers
Description copied from interface:ViewableGets all the viewers of this viewable element.- Specified by:
getViewersin interfaceViewable- Returns:
- A Set containing all the element's viewers
-
BelowNameTag(String, Component)