Class ComponentGsonSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.serializer.ComponentGsonSerializer
- All Implemented Interfaces:
JsonFormatVisitable
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
-
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
-
ComponentGsonSerializer
public ComponentGsonSerializer()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
-