| Constructor and Description |
|---|
TextualComponent() |
| Modifier and Type | Method and Description |
|---|---|
abstract TextualComponent |
clone() |
abstract String |
getKey() |
abstract String |
getReadableString() |
static TextualComponent |
localizedText(String translateKey) |
static TextualComponent |
objectiveScore(String scoreboardObjective) |
static TextualComponent |
objectiveScore(String playerName,
String scoreboardObjective) |
static TextualComponent |
rawText(String textValue) |
static TextualComponent |
selector(String selector) |
String |
toString() |
abstract void |
writeJson(com.google.gson.stream.JsonWriter writer) |
public static TextualComponent rawText(String textValue)
public static TextualComponent localizedText(String translateKey)
public static TextualComponent objectiveScore(String scoreboardObjective)
public static TextualComponent objectiveScore(String playerName, String scoreboardObjective)
public static TextualComponent selector(String selector)
public abstract String getKey()
public abstract String getReadableString()
public abstract TextualComponent clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic abstract void writeJson(com.google.gson.stream.JsonWriter writer)
throws IOException
IOExceptionCopyright © 2022. All rights reserved.