Class HoverSerializer

java.lang.Object
com.github.retrooper.packetevents.util.adventure.HoverSerializer

public class HoverSerializer extends Object
  • Constructor Details

    • HoverSerializer

      public HoverSerializer()
  • Method Details

    • deserializeShowItem

      public net.kyori.adventure.text.event.HoverEvent.ShowItem deserializeShowItem(HoverSerializer.GsonLike gson, com.google.gson.JsonElement input, boolean legacy) throws IOException
      Throws:
      IOException
    • deserializeShowEntity

      public net.kyori.adventure.text.event.HoverEvent.ShowEntity deserializeShowEntity(HoverSerializer.GsonLike gson, com.google.gson.JsonElement input, net.kyori.adventure.util.Codec.Decoder<net.kyori.adventure.text.Component,String,? extends RuntimeException> componentCodec, boolean legacy) throws IOException
      Throws:
      IOException
    • deserializeShowAchievement

      public net.kyori.adventure.text.Component deserializeShowAchievement(com.google.gson.JsonElement input)
    • serializeShowItem

      @NotNull public @NotNull net.kyori.adventure.text.Component serializeShowItem(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem input) throws IOException
      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
      Throws:
      IOException