Class DisplaySlot
java.lang.Object
org.geysermc.geyser.scoreboard.display.slot.DisplaySlot
- Direct Known Subclasses:
BelownameDisplaySlot,PlayerlistDisplaySlot,SidebarDisplaySlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Objectiveprotected final StringUse this instead of objective name because one objective can be shared in multiple slots, but each slot has its own logic and might not contain all scoresprotected final Stringprotected final GeyserSessionprotected final org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPositionprotected final org.geysermc.mcprotocollib.protocol.data.game.scoreboard.TeamColorprotected UpdateType -
Constructor Summary
ConstructorsConstructorDescriptionDisplaySlot(GeyserSession session, Objective objective, org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slot) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddScore(ScoreReference reference) voidabstract voidplayerRegistered(PlayerEntity player) abstract voidplayerRemoved(PlayerEntity player) org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPositionposition()voidremove()final voidrender(List<org.cloudburstmc.protocol.bedrock.data.ScoreInfo> addScores, List<org.cloudburstmc.protocol.bedrock.data.ScoreInfo> removeScores) protected abstract voidrender0(List<org.cloudburstmc.protocol.bedrock.data.ScoreInfo> addScores, List<org.cloudburstmc.protocol.bedrock.data.ScoreInfo> removeScores) protected voidprotected voidstatic org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPositionslotCategory(org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slot) @Nullable org.geysermc.mcprotocollib.protocol.data.game.scoreboard.TeamColor
-
Field Details
-
session
-
objective
-
objectiveId
Use this instead of objective name because one objective can be shared in multiple slots, but each slot has its own logic and might not contain all scores -
slot
protected final org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slot -
teamColor
protected final org.geysermc.mcprotocollib.protocol.data.game.scoreboard.TeamColor teamColor -
positionName
-
updateType
-
-
Constructor Details
-
DisplaySlot
public DisplaySlot(GeyserSession session, Objective objective, org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slot)
-
-
Method Details
-
render
-
render0
-
addScore
-
playerRegistered
-
playerRemoved
-
remove
public void remove() -
markNeedsUpdate
public void markNeedsUpdate() -
sendDisplayObjective
protected void sendDisplayObjective() -
sendRemoveObjective
protected void sendRemoveObjective() -
objective
-
objectiveId
-
position
public org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition position() -
teamColor
public @Nullable org.geysermc.mcprotocollib.protocol.data.game.scoreboard.TeamColor teamColor() -
updateType
-
slotCategory
public static org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slotCategory(org.geysermc.mcprotocollib.protocol.data.game.scoreboard.ScoreboardPosition slot)
-