public final class MessagePart
extends java.lang.Object
implements org.bukkit.configuration.serialization.ConfigurationSerializable, java.lang.Cloneable
FancyMessage.| Constructor and Description |
|---|
MessagePart(TextualComponent text) |
| Modifier and Type | Method and Description |
|---|---|
MessagePart |
clone() |
static MessagePart |
deserialize(java.util.Map<java.lang.String,java.lang.Object> serialized) |
java.util.Map<java.lang.String,java.lang.Object> |
serialize() |
void |
writeJson(JsonWriter json)
Writes the JSON representation of this object to the specified writer.
|
public MessagePart(TextualComponent text)
public MessagePart clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void writeJson(JsonWriter json)
json - The JSON writer which will receive the object.public java.util.Map<java.lang.String,java.lang.Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic static MessagePart deserialize(java.util.Map<java.lang.String,java.lang.Object> serialized)