Class ObjectiveScore
java.lang.Object
net.megavex.scoreboardlibrary.api.objective.ObjectiveScore
Represents an objective score.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectiveScore(int value, @Nullable net.kyori.adventure.text.ComponentLike displayName, @Nullable ScoreFormat format) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.kyori.adventure.text.ComponentGets the score display.boolean@Nullable ScoreFormatformat()Gets the score format, which determines how the scores are rendered in clients.inthashCode()toString()intvalue()
-
Constructor Details
-
ObjectiveScore
public ObjectiveScore(int value, @Nullable @Nullable net.kyori.adventure.text.ComponentLike displayName, @Nullable @Nullable ScoreFormat format)
-
-
Method Details
-
value
public int value()- Returns:
- score value
-
displayName
@Nullable public @Nullable net.kyori.adventure.text.Component displayName()Gets the score display.- Returns:
- score display
- Since:
- Minecraft 1.20.3
-
format
Gets the score format, which determines how the scores are rendered in clients.- Returns:
- score format
- Since:
- Minecraft 1.20.3
-
toString
-
equals
-
hashCode
public int hashCode()
-