Class Legacy
java.lang.Object
io.rhythmknights.coreapi.component.utility.Legacy
Utility class for converting between different text formatting styles
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCustom serializer that combines both legacy and MiniMessage formats -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Legacy.TextSerializerCreates a single serializer that supports multiple formats: 1. -
Method Summary
-
Field Details
-
SERIALIZER
Creates a single serializer that supports multiple formats: 1. Legacy format (&fand&#FFFFFF) 2. MiniMessage format (<white>and<#FFFFFF>) Usage: - To convert a string with any supported format to a Component: SERIALIZER.deserialize(text) - To convert a Component to a legacy string: SERIALIZER.serialize(component)
-