Class AdventureNBTSerializer

java.lang.Object
com.github.retrooper.packetevents.util.adventure.AdventureNBTSerializer
All Implemented Interfaces:
net.kyori.adventure.text.serializer.ComponentDecoder<NBT,net.kyori.adventure.text.Component>, net.kyori.adventure.text.serializer.ComponentEncoder<net.kyori.adventure.text.Component,NBT>, net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,NBT>

public class AdventureNBTSerializer extends Object implements net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,NBT>
  • Constructor Details

    • AdventureNBTSerializer

      public AdventureNBTSerializer(boolean downsampleColor)
  • Method Details

    • deserialize

      @NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull NBT input)
      Specified by:
      deserialize in interface net.kyori.adventure.text.serializer.ComponentDecoder<NBT,net.kyori.adventure.text.Component>
      Specified by:
      deserialize in interface net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,NBT>
    • serialize

      @NotNull public @NotNull NBT serialize(@NotNull @NotNull net.kyori.adventure.text.Component component)
      Specified by:
      serialize in interface net.kyori.adventure.text.serializer.ComponentEncoder<net.kyori.adventure.text.Component,NBT>
      Specified by:
      serialize in interface net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,NBT>
    • deserializeStyle

      @NotNull public @NotNull net.kyori.adventure.text.format.Style deserializeStyle(NBTCompound input)
    • serializeStyle

      @NotNull public @NotNull NBTCompound serializeStyle(net.kyori.adventure.text.format.Style style)