Package net.md_5.bungee.chat
Class ComponentSerializer
java.lang.Object
net.md_5.bungee.chat.ComponentSerializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BaseComponent>
public class ComponentSerializer
extends Object
implements com.google.gson.JsonDeserializer<BaseComponent>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static BaseComponent[]
parse
(com.google.gson.stream.JsonReader reader) static BaseComponent[]
static String
static String
toString
(BaseComponent component) static String
toString
(BaseComponent... components)
-
Field Details
-
serializedComponents
-
-
Constructor Details
-
ComponentSerializer
public ComponentSerializer()
-
-
Method Details
-
parse
-
parse
-
toString
-
toString
-
toString
-
deserialize
public BaseComponent deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BaseComponent>
- Throws:
com.google.gson.JsonParseException
-