Class NBTLegacyHoverEventSerializer

java.lang.Object
net.kyori.adventure.platform.fabric.impl.NBTLegacyHoverEventSerializer
All Implemented Interfaces:
net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer

public final class NBTLegacyHoverEventSerializer extends Object implements net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
  • Field Details

  • Method Details

    • deserializeShowItem

      public @NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem deserializeShowItem(@NotNull @NotNull net.kyori.adventure.text.Component input) throws IOException
      Specified by:
      deserializeShowItem in interface net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
      Throws:
      IOException
    • deserializeShowEntity

      public @NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntity deserializeShowEntity(@NotNull @NotNull net.kyori.adventure.text.Component input, net.kyori.adventure.util.Codec.Decoder<net.kyori.adventure.text.Component,String,? extends RuntimeException> componentCodec) throws IOException
      Specified by:
      deserializeShowEntity in interface net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
      Throws:
      IOException
    • serializeShowItem

      @NotNull public @NotNull net.kyori.adventure.text.Component serializeShowItem(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem input) throws IOException
      Specified by:
      serializeShowItem in interface net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
      Throws:
      IOException
    • serializeShowEntity

      @NotNull public @NotNull net.kyori.adventure.text.Component serializeShowEntity(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntity input, net.kyori.adventure.util.Codec.Encoder<net.kyori.adventure.text.Component,String,? extends RuntimeException> componentCodec) throws IOException
      Specified by:
      serializeShowEntity in interface net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
      Throws:
      IOException