Package org.geysermc.geyser.scoreboard
Class Objective
java.lang.Object
org.geysermc.geyser.scoreboard.Objective
-
Constructor Summary
ConstructorDescriptionObjective(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.ScoreboardPosition
long
getId()
com.github.steveice10.mc.protocol.data.game.scoreboard.TeamColor
int
getType()
boolean
isActive()
void
The objective will be removed on the next updatevoid
registerScore(String id, int score)
void
removed()
void
removeScore(String id)
void
removeScore0(String id)
Used internally to remove a score from the score mapvoid
setActive(com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition displaySlot)
setDisplayName(String displayName)
void
setType(int type)
void
setUpdateType(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
-