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