Class ComponentGsonDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.deserializer.ComponentGsonDeserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
- Direct Known Subclasses:
ComponentMiniMessageDeserializer
public class ComponentGsonDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<net.kyori.adventure.text.Component>
Class for deserialization of
Component using Gson.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Componentdeserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) protected net.kyori.adventure.text.ComponentparseObjectTree(com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.databind.DeserializationContext ctxt) Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
ComponentGsonDeserializer
public ComponentGsonDeserializer()
-
-
Method Details
-
deserialize
public net.kyori.adventure.text.Component deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException - Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<net.kyori.adventure.text.Component>- Throws:
IOException
-
parseObjectTree
protected net.kyori.adventure.text.Component parseObjectTree(com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException - Throws:
IOException
-