public final class ComponentSupport
extends java.lang.Object
Components.
By default, the deserializer is LegacyComponentSerializer which uses ampersand to deserialize the given title.
| Modifier and Type | Method and Description |
|---|---|
static void |
deserializer(net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,?,java.lang.String> deserializer)
Sets the deserializer to be used for converting strings into
Components. |
public static void deserializer(net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,?,java.lang.String> deserializer)
Components.
You can set it to null to disable component support for Strings.
deserializer - the component serializer to set.