Package xyz.jpenilla.squaremap.api
Interface HtmlComponentSerializer
- All Superinterfaces:
ComponentEncoder<Component,String>
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface HtmlComponentSerializer
extends ComponentEncoder<Component,String>
Safely encodes
Components as HTML text.
Mostly useful for marker tooltips.
- Since:
- 1.2.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HtmlComponentSerializerwithFlattener(ComponentFlattener flattener) Create a newHtmlComponentSerializerusing the providedComponentFlattener.Methods inherited from interface net.kyori.adventure.text.serializer.ComponentEncoder
serialize, serializeOr, serializeOrNull
-
Method Details
-
withFlattener
Create a newHtmlComponentSerializerusing the providedComponentFlattener.- Parameters:
flattener- component flattener- Returns:
- serializer
-