Package org.geysermc.geyser.scoreboard
Class Scoreboard
java.lang.Object
org.geysermc.geyser.scoreboard.Scoreboard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteObjective(Objective objective, boolean remove)
void
displayObjective(String objectiveId, com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot)
getObjective(String objectiveName)
getSlot(com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition slot)
getTeamFor(String entity)
void
onUpdate()
registerNewObjective(String objectiveId)
registerNewTeam(String teamName, String[] players)
void
void
removeTeam(String teamName)
void
unregisterObjective(String objectiveName)
void
updateEntityNames(Team team, boolean teamChange)
Updates the display names of all entities in a given team.void
updateEntityNames(Team team, Set<String> names, boolean teamChange)
Updates the display name of a set of entities within a given team.
-
Constructor Details
-
Scoreboard
-
-
Method Details
-
removeScoreboard
public void removeScoreboard() -
registerNewObjective
-
displayObjective
public void displayObjective(String objectiveId, com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot) -
registerNewTeam
-
onUpdate
public void onUpdate() -
deleteObjective
- Parameters:
remove
- if we should remove the objective from the objectives map.
-
getObjective
-
getObjectives
-
unregisterObjective
-
getSlot
public Objective getSlot(com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition slot) -
getTeam
-
getTeamFor
-
removeTeam
-
updateEntityNames
Updates the display names of all entities in a given team.- Parameters:
teamChange
- the players have either joined or left the team. Used for optimizations when just the display name updated.
-
updateEntityNames
Updates the display name of a set of entities within a given team. The team may also be null if the set is being removed from a team. -
getNextId
-
getObjectiveSlots
-