Class ComponentMiniMessageSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.serializer.ComponentMiniMessageSerializer
- All Implemented Interfaces:
JsonFormatVisitable
public class ComponentMiniMessageSerializer
extends JsonSerializer<net.kyori.adventure.text.Component>
Class for serialization of
Component
using MiniMessage
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
Constructor Summary
ConstructorDescriptionCreates a new serializerComponentMiniMessageSerializer
(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Creates a new serializer -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(net.kyori.adventure.text.Component value, JsonGenerator gen, SerializerProvider serializers) Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Constructor Details
-
ComponentMiniMessageSerializer
public ComponentMiniMessageSerializer(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Creates a new serializer- Parameters:
miniMessage
- MiniMessage instance to use
-
ComponentMiniMessageSerializer
public ComponentMiniMessageSerializer()Creates a new serializer
-
-
Method Details
-
serialize
public void serialize(net.kyori.adventure.text.Component value, JsonGenerator gen, SerializerProvider serializers) throws IOException - Specified by:
serialize
in classJsonSerializer<net.kyori.adventure.text.Component>
- Throws:
IOException
-