Interface NbtComponentSerializer
- All Superinterfaces:
ComponentDecoder<net.kyori.adventure.nbt.BinaryTag,,Component> ComponentEncoder<Component,,net.kyori.adventure.nbt.BinaryTag> ComponentSerializer<Component,Component, net.kyori.adventure.nbt.BinaryTag>
public interface NbtComponentSerializer
extends ComponentSerializer<Component,Component,net.kyori.adventure.nbt.BinaryTag>
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull StyledeserializeStyle(@NotNull net.kyori.adventure.nbt.BinaryTag tag) Deprecated, for removal: This API element is subject to removal in a future version.static @NotNull NbtComponentSerializernbt()default @NotNull net.kyori.adventure.nbt.CompoundBinaryTagserializeStyle(@NotNull Style style) Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLEinstead.Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserialize, deserializeOr, deserializeOrNull, serialize, serializeOr, serializeOrNull
-
Method Details
-
nbt
-
deserializeStyle
@Deprecated(forRemoval=true) @NotNull default @NotNull Style deserializeStyle(@NotNull @NotNull net.kyori.adventure.nbt.BinaryTag tag) Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLEinstead. -
serializeStyle
@Deprecated(forRemoval=true) @NotNull default @NotNull net.kyori.adventure.nbt.CompoundBinaryTag serializeStyle(@NotNull @NotNull Style style) Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLEinstead.
-
Codec.COMPONENT_STYLEinstead.