Class Objective
java.lang.Object
org.geysermc.connector.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 TypeMethodDescriptionvoidregisterScore(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)
-
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) -
removed
public void removed()
-