public final class BedrockLegacyTextSerializer
extends java.lang.Object
implements net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,java.lang.String>
| Modifier and Type | Class and Description |
|---|---|
static class |
BedrockLegacyTextSerializer.BedrockNamedTextColor |
| Constructor and Description |
|---|
BedrockLegacyTextSerializer(net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.kyori.adventure.text.Component |
deserialize(@NotNull java.lang.String input) |
static BedrockLegacyTextSerializer |
getInstance() |
@NotNull java.lang.String |
serialize(@NotNull net.kyori.adventure.text.Component component) |
public BedrockLegacyTextSerializer(net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer serializer)
@NotNull
public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull
@NotNull java.lang.String input)
deserialize in interface net.kyori.adventure.text.serializer.ComponentDecoder<java.lang.String,net.kyori.adventure.text.Component>deserialize in interface net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,java.lang.String>@NotNull
public @NotNull java.lang.String serialize(@NotNull
@NotNull net.kyori.adventure.text.Component component)
serialize in interface net.kyori.adventure.text.serializer.ComponentEncoder<net.kyori.adventure.text.Component,java.lang.String>serialize in interface net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,java.lang.String>public static BedrockLegacyTextSerializer getInstance()