Class ComponentGsonSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<net.kyori.adventure.text.Component>
de.eldoria.jacksonbukkit.serializer.ComponentGsonSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class ComponentGsonSerializer extends tools.jackson.databind.ValueSerializer<net.kyori.adventure.text.Component>
Class for serialization of Component using MiniMessage.
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new serializer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(net.kyori.adventure.text.Component value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext serializers)
     

    Methods inherited from class tools.jackson.databind.ValueSerializer

    acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComponentGsonSerializer

      public ComponentGsonSerializer()
      Creates a new serializer
  • Method Details

    • serialize

      public void serialize(net.kyori.adventure.text.Component value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext serializers) throws tools.jackson.core.JacksonException
      Specified by:
      serialize in class tools.jackson.databind.ValueSerializer<net.kyori.adventure.text.Component>
      Throws:
      tools.jackson.core.JacksonException