public class ScoreText extends BaseText implements ParsableText
Text.Serializer| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private String |
objective |
private String |
score |
private EntitySelector |
selector |
| Constructor and Description |
|---|
ScoreText(String name,
String objective) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
ScoreText |
copy() |
boolean |
equals(Object obj) |
String |
getName() |
String |
getObjective() |
private void |
parse(ServerCommandSource source) |
Text |
parse(ServerCommandSource source,
Entity sender,
int depth) |
void |
setScore(String score) |
String |
toString() |
append, getSiblings, getStyle, hashCode, setStyle, streamclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, asFormattedString, asTruncatedString, copyWithoutChildren, deepCopy, formatted, formatted, getString, iterator, streamCopied, styledforEach, spliteratorprivate final String name
@Nullable private final EntitySelector selector
private final String objective
private String score
public String getName()
public String getObjective()
public void setScore(String score)
private void parse(ServerCommandSource source)
public Text parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxException