Package dev.selena.luacore.utils.text
Class ComponentUtils
java.lang.Object
dev.selena.luacore.utils.text.ComponentUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.ComponentConverts a string to an Adventure Component with MiniMessage.static List<net.kyori.adventure.text.Component> Converts a list of strings to a list of Adventure Components with MiniMessage.static StringconvertFromIridium(String input) Converts a string from Iridium's color format to MiniMessage format.
-
Constructor Details
-
ComponentUtils
public ComponentUtils()
-
-
Method Details
-
color
Converts a string to an Adventure Component with MiniMessage. This method supports Iridium's gradient, rainbow, and solid color formats too.- Parameters:
input- the string to convert- Returns:
- a MiniMessage component with the converted colors
-
color
Converts a list of strings to a list of Adventure Components with MiniMessage. This method supports Iridium's gradient, rainbow, and solid color formats too.- Parameters:
strings- the list of strings to convert- Returns:
- a list of MiniMessage components with the converted colors
-
convertFromIridium
Converts a string from Iridium's color format to MiniMessage format. This method supports gradient, rainbow, and solid color formats.- Parameters:
input- the string to convert- Returns:
- the converted string in MiniMessage format
-