public class ComponentSerializer extends Object implements com.google.gson.JsonDeserializer<BaseComponent>
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Set<BaseComponent>> |
serializedComponents |
Constructor and Description |
---|
ComponentSerializer() |
Modifier and Type | Method and Description |
---|---|
BaseComponent |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
static BaseComponent[] |
parse(String json) |
static String |
toString(BaseComponent... components) |
static String |
toString(BaseComponent component) |
static String |
toString(Object object) |
public static final ThreadLocal<Set<BaseComponent>> serializedComponents
public static BaseComponent[] parse(String json)
public static String toString(BaseComponent component)
public static String toString(BaseComponent... components)
public BaseComponent deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<BaseComponent>
com.google.gson.JsonParseException
Copyright © 2012–2020 SpigotMC. All rights reserved.