public class ChatComponentScore extends ChatComponentStyle
IChatComponent.Serializer| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private java.lang.String |
objective |
private java.lang.String |
value
The value displayed instead of the real score (may be null)
|
siblings| Constructor and Description |
|---|
ChatComponentScore(java.lang.String nameIn,
java.lang.String objectiveIn) |
| Modifier and Type | Method and Description |
|---|---|
ChatComponentScore |
createCopy()
Creates a copy of this component.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getName() |
java.lang.String |
getObjective() |
java.lang.String |
getUnformattedTextForChat()
Gets the text of this component, without any special formatting codes added, for chat.
|
void |
setValue(java.lang.String valueIn)
Sets the value displayed instead of the real score.
|
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getChatStyle, getFormattedText, getSiblings, getUnformattedText, hashCode, iterator, setChatStyleprivate final java.lang.String name
private final java.lang.String objective
private java.lang.String value
public ChatComponentScore(java.lang.String nameIn,
java.lang.String objectiveIn)
public java.lang.String getName()
public java.lang.String getObjective()
public void setValue(java.lang.String valueIn)
public java.lang.String getUnformattedTextForChat()
public ChatComponentScore createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals in class ChatComponentStylepublic java.lang.String toString()
toString in class ChatComponentStyle