Class ComponentGsonDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.deserializer.ComponentGsonDeserializer
- All Implemented Interfaces:
NullValueProvider
- Direct Known Subclasses:
ComponentMiniMessageDeserializer
Class for deserialization of
Component
using Gson
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Component
deserialize
(JsonParser p, DeserializationContext ctxt) protected net.kyori.adventure.text.Component
parseObjectTree
(JsonNode tree, 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(JsonParser p, DeserializationContext ctxt) throws IOException - Specified by:
deserialize
in classJsonDeserializer<net.kyori.adventure.text.Component>
- Throws:
IOException
-
parseObjectTree
protected net.kyori.adventure.text.Component parseObjectTree(JsonNode tree, DeserializationContext ctxt) throws IOException - Throws:
IOException
-