Module net.minestom.server
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 Style
deserializeStyle
(net.kyori.adventure.nbt.BinaryTag tag) Deprecated, for removal: This API element is subject to removal in a future version.static NbtComponentSerializer
nbt()
default net.kyori.adventure.nbt.CompoundBinaryTag
serializeStyle
(Style style) Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLE
instead.Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserialize, deserializeOr, deserializeOrNull, serialize, serializeOr, serializeOrNull
-
Method Details
-
nbt
-
deserializeStyle
Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLE
instead. -
serializeStyle
@Deprecated(forRemoval=true) default net.kyori.adventure.nbt.CompoundBinaryTag serializeStyle(Style style) Deprecated, for removal: This API element is subject to removal in a future version.useCodec.COMPONENT_STYLE
instead.
-
Codec.COMPONENT_STYLE
instead.