public final class ScoreText extends Text
Text
displaying the current score of a player.Score
,
ScoreText.Builder
Modifier and Type | Class and Description |
---|---|
static class |
ScoreText.Builder
Represents a
Text.Builder creating immutable ScoreText
instances. |
EMPTY, NEW_LINE, PLAIN_COMPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getOverride()
Returns a value that is displayed instead of the real score.
|
Score |
getScore()
Returns the score displayed by this
Text . |
int |
hashCode() |
ScoreText.Builder |
toBuilder()
Returns a new
Text.Builder with the content, formatting and actions of
this text. |
builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, compareTo, concat, getChildren, getClickAction, getColor, getContentVersion, getFormat, getHoverAction, getShiftClickAction, getStyle, isEmpty, join, join, join, joinWith, joinWith, joinWith, of, of, of, of, of, of, of, of, replace, replace, replace, replace, toContainer, toPlain, toPlainSingle, toString, toText, trim, withChildren
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
applyTo
public Score getScore()
Text
.public Optional<String> getOverride()
Optional.empty()
if the real score will be displayed
insteadpublic ScoreText.Builder toBuilder()
Text
Text.Builder
with the content, formatting and actions of
this text. This can be used to edit an otherwise immutable Text
instance.