public class StyleSerializer
extends java.lang.Object
implements com.google.gson.JsonDeserializer<net.kyori.text.format.Style>, com.google.gson.JsonSerializer<net.kyori.text.format.Style>
| Modifier and Type | Field and Description |
|---|---|
static StyleSerializer |
INSTANCE |
| Constructor and Description |
|---|
StyleSerializer() |
| Modifier and Type | Method and Description |
|---|---|
net.kyori.text.format.Style |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(net.kyori.text.format.Style src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public static final StyleSerializer INSTANCE
public net.kyori.text.format.Style deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<net.kyori.text.format.Style>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(net.kyori.text.format.Style src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<net.kyori.text.format.Style>