Class ComponentMiniMessageDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.deserializer.ComponentGsonDeserializer
de.eldoria.jacksonbukkit.deserializer.ComponentMiniMessageDeserializer
- All Implemented Interfaces:
NullValueProvider
Class for deserialization of
Component
using MiniMessage
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None
-
Constructor Summary
ConstructorDescriptionCreates a new serializerComponentMiniMessageDeserializer
(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Creates a new serializer -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Component
deserialize
(JsonParser p, DeserializationContext ctxt) Methods inherited from class de.eldoria.jacksonbukkit.deserializer.ComponentGsonDeserializer
parseObjectTree
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
-
ComponentMiniMessageDeserializer
public ComponentMiniMessageDeserializer(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Creates a new serializer- Parameters:
miniMessage
- MiniMessage instance to use
-
ComponentMiniMessageDeserializer
public ComponentMiniMessageDeserializer()Creates a new serializer
-
-
Method Details
-
deserialize
public net.kyori.adventure.text.Component deserialize(JsonParser p, DeserializationContext ctxt) throws IOException - Overrides:
deserialize
in classComponentGsonDeserializer
- Throws:
IOException
-