public class ComponentSerializer extends Object implements com.google.gson.JsonDeserializer<BaseComponent>
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<HashSet<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) |
public static final ThreadLocal<HashSet<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.JsonParseExceptionCopyright © 2012–2014 SpigotMC. All rights reserved.