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
ConstructorsConstructorDescriptionAdventureNBTSerializer
(boolean downsampleColor) Deprecated.AdventureNBTSerializer
(ClientVersion version, boolean downsampleColor) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull NBT input) Deprecated.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull NBT input, PacketWrapper<?> wrapper) @Nullable net.kyori.adventure.text.Component
deserializeOr
(@Nullable NBT input, @Nullable net.kyori.adventure.text.Component fallback) Deprecated.@Nullable net.kyori.adventure.text.Component
deserializeOr
(@Nullable NBT input, @Nullable net.kyori.adventure.text.Component fallback, PacketWrapper<?> wrapper) @Nullable net.kyori.adventure.text.Component
deserializeOrNull
(@Nullable NBT input) Deprecated.@Nullable net.kyori.adventure.text.Component
deserializeOrNull
(@Nullable NBT input, PacketWrapper<?> wrapper) @NotNull net.kyori.adventure.text.format.Style
deserializeStyle
(NBTCompound input) Deprecated.@NotNull net.kyori.adventure.text.format.Style
deserializeStyle
(NBTCompound input, PacketWrapper<?> wrapper) @NotNull NBT
serialize
(@NotNull net.kyori.adventure.text.Component component) Deprecated.@NotNull NBT
serialize
(@NotNull net.kyori.adventure.text.Component component, PacketWrapper<?> wrapper) @Nullable NBT
serializeOr
(@Nullable net.kyori.adventure.text.Component component, @Nullable NBT fallback) Deprecated.@Nullable NBT
serializeOr
(@Nullable net.kyori.adventure.text.Component component, @Nullable NBT fallback, PacketWrapper<?> wrapper) @Nullable NBT
serializeOrNull
(@Nullable net.kyori.adventure.text.Component component) Deprecated.@Nullable NBT
serializeOrNull
(@Nullable net.kyori.adventure.text.Component component, PacketWrapper<?> wrapper) @NotNull NBTCompound
serializeStyle
(net.kyori.adventure.text.format.Style style) Deprecated.@NotNull NBTCompound
serializeStyle
(net.kyori.adventure.text.format.Style style, PacketWrapper<?> wrapper) 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
-
Constructor Details
-
AdventureNBTSerializer
-
AdventureNBTSerializer
Deprecated.
-
-
Method Details
-
deserializeOrNull
@Contract("!null -> !null") @Deprecated @Nullable public @Nullable net.kyori.adventure.text.Component deserializeOrNull(@Nullable @Nullable NBT input) Deprecated.- Specified by:
deserializeOrNull
in interfacenet.kyori.adventure.text.serializer.ComponentDecoder<NBT,
net.kyori.adventure.text.Component> - Specified by:
deserializeOrNull
in interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,
net.kyori.adventure.text.Component, NBT>
-
deserializeOrNull
@Contract("!null, _ -> !null") @Nullable public @Nullable net.kyori.adventure.text.Component deserializeOrNull(@Nullable @Nullable NBT input, PacketWrapper<?> wrapper) -
deserializeOr
@Contract("_, !null -> !null") @Deprecated @Nullable public @Nullable net.kyori.adventure.text.Component deserializeOr(@Nullable @Nullable NBT input, @Nullable @Nullable net.kyori.adventure.text.Component fallback) Deprecated.- Specified by:
deserializeOr
in interfacenet.kyori.adventure.text.serializer.ComponentDecoder<NBT,
net.kyori.adventure.text.Component> - Specified by:
deserializeOr
in interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,
net.kyori.adventure.text.Component, NBT>
-
deserializeOr
@Contract("_, !null, _ -> !null") @Nullable public @Nullable net.kyori.adventure.text.Component deserializeOr(@Nullable @Nullable NBT input, @Nullable @Nullable net.kyori.adventure.text.Component fallback, PacketWrapper<?> wrapper) -
serializeOrNull
@Contract("!null -> !null") @Deprecated @Nullable public @Nullable NBT serializeOrNull(@Nullable @Nullable net.kyori.adventure.text.Component component) Deprecated.- Specified by:
serializeOrNull
in interfacenet.kyori.adventure.text.serializer.ComponentEncoder<net.kyori.adventure.text.Component,
NBT> - Specified by:
serializeOrNull
in interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,
net.kyori.adventure.text.Component, NBT>
-
serializeOrNull
@Contract("!null, _ -> !null") @Nullable public @Nullable NBT serializeOrNull(@Nullable @Nullable net.kyori.adventure.text.Component component, PacketWrapper<?> wrapper) -
serializeOr
@Contract("_, !null -> !null") @Deprecated @Nullable public @Nullable NBT serializeOr(@Nullable @Nullable net.kyori.adventure.text.Component component, @Nullable @Nullable NBT fallback) Deprecated.- Specified by:
serializeOr
in interfacenet.kyori.adventure.text.serializer.ComponentEncoder<net.kyori.adventure.text.Component,
NBT> - Specified by:
serializeOr
in interfacenet.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,
net.kyori.adventure.text.Component, NBT>
-
serializeOr
@Contract("_, !null, _ -> !null") @Nullable public @Nullable NBT serializeOr(@Nullable @Nullable net.kyori.adventure.text.Component component, @Nullable @Nullable NBT fallback, PacketWrapper<?> wrapper) -
deserialize
@Deprecated @NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull NBT input) Deprecated.- 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>
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull NBT input, PacketWrapper<?> wrapper) -
serialize
@Deprecated @NotNull public @NotNull NBT serialize(@NotNull @NotNull net.kyori.adventure.text.Component component) Deprecated. -
serialize
@NotNull public @NotNull NBT serialize(@NotNull @NotNull net.kyori.adventure.text.Component component, PacketWrapper<?> wrapper) -
deserializeStyle
@Deprecated @NotNull public @NotNull net.kyori.adventure.text.format.Style deserializeStyle(NBTCompound input) Deprecated. -
deserializeStyle
@NotNull public @NotNull net.kyori.adventure.text.format.Style deserializeStyle(NBTCompound input, PacketWrapper<?> wrapper) -
serializeStyle
@Deprecated @NotNull public @NotNull NBTCompound serializeStyle(net.kyori.adventure.text.format.Style style) Deprecated. -
serializeStyle
@NotNull public @NotNull NBTCompound serializeStyle(net.kyori.adventure.text.format.Style style, PacketWrapper<?> wrapper)
-