Class AdventureSerializer

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

public class AdventureSerializer extends Object
  • Constructor Details

    • AdventureSerializer

      public AdventureSerializer()
  • Method Details

    • getGsonSerializer

      public static net.kyori.adventure.text.serializer.gson.GsonComponentSerializer getGsonSerializer()
    • getLegacyGsonSerializer

      @Deprecated public static net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacyGsonSerializer()
      Deprecated.
    • getLegacySerializer

      public static net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacySerializer()
    • getNBTSerializer

      public static AdventureNBTSerializer getNBTSerializer()
    • asVanilla

      public static String asVanilla(net.kyori.adventure.text.Component component)
    • fromLegacyFormat

      public static net.kyori.adventure.text.Component fromLegacyFormat(String legacyMessage)
    • toLegacyFormat

      public static String toLegacyFormat(net.kyori.adventure.text.Component component)
    • parseComponent

      public static net.kyori.adventure.text.Component parseComponent(String json)
    • parseJsonTree

      public static net.kyori.adventure.text.Component parseJsonTree(com.google.gson.JsonElement json)
    • toJson

      public static String toJson(net.kyori.adventure.text.Component component)
    • toJsonTree

      public static com.google.gson.JsonElement toJsonTree(net.kyori.adventure.text.Component component)
    • fromNbt

      public static net.kyori.adventure.text.Component fromNbt(NBT nbt)
    • toNbt

      public static NBT toNbt(net.kyori.adventure.text.Component component)