Package org.geysermc.geyser.scoreboard
Class Objective
java.lang.Object
org.geysermc.geyser.scoreboard.Objective
-
Constructor Summary
ConstructorsConstructorDescriptionObjective(Scoreboard scoreboard, String objectiveName)/!\ This method is made for temporary objectives until the real objective is receivedObjective(Scoreboard scoreboard, String objectiveName, com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot, String displayName, int type) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPositionlonggetId()com.github.steveice10.mc.protocol.data.game.scoreboard.TeamColorintgetType()booleanisActive()voidThe objective will be removed on the next updatevoidregisterScore(String id, int score)voidremoved()voidremoveScore(String id)voidremoveScore0(String id)Used internally to remove a score from the score mapvoidsetActive(com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot)setDisplayName(String displayName)voidsetType(int type)voidsetUpdateType(UpdateType updateType)
-
Constructor Details
-
Objective
/!\ This method is made for temporary objectives until the real objective is received- Parameters:
scoreboard- the scoreboardobjectiveName- the name of the objective
-
Objective
public Objective(Scoreboard scoreboard, String objectiveName, com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot, String displayName, int type)
-
-
Method Details
-
registerScore
-
setScore
-
removeScore
-
removeScore0
Used internally to remove a score from the score map -
setDisplayName
-
setType
-
setActive
public void setActive(com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot) -
pendingRemove
public void pendingRemove()The objective will be removed on the next update -
getTeamColor
public com.github.steveice10.mc.protocol.data.game.scoreboard.TeamColor getTeamColor() -
removed
public void removed() -
getScoreboard
-
getId
public long getId() -
isActive
public boolean isActive() -
getUpdateType
-
getObjectiveName
-
getDisplaySlot
public com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition getDisplaySlot() -
getDisplaySlotName
-
getDisplayName
-
getType
public int getType() -
getScores
-
setUpdateType
-