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>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull NBT input) @NotNull net.kyori.adventure.text.format.Style
deserializeStyle
(NBTCompound input) @NotNull NBT
serialize
(@NotNull net.kyori.adventure.text.Component component) @NotNull NBTCompound
serializeStyle
(net.kyori.adventure.text.format.Style style) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserializeOr, deserializeOrNull, serializeOr, serializeOrNull
-
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 interfacenet.kyori.adventure.text.serializer.ComponentDecoder<NBT,
net.kyori.adventure.text.Component> - Specified by:
deserialize
in interfacenet.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) -
deserializeStyle
-
serializeStyle
-