Package dev.selena.luacore.utils.text
Class ContentUtils
java.lang.Object
dev.selena.luacore.utils.text.ContentUtils
- Direct Known Subclasses:
LuaMessageUtils
Used for message content manipulation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Used for making the first Letter of each word capsstatic String
Used for coloring string using Iridiumstatic String[]
colorArray
(Object[] content) Colors an array using Iridiumstatic String[]
colorArray
(List<Objects> content) Colors a List using Iridium then convert to a String arrayColors a List using Iridium
-
Constructor Details
-
ContentUtils
public ContentUtils()
-
-
Method Details
-
capsFirst
Used for making the first Letter of each word caps- Parameters:
content
- The String you want to capitalize- Returns:
- The formatted string content
-
color
Used for coloring string using Iridium- Parameters:
message
- The string content you want to color- Returns:
- The newly colored string
-
colorList
Colors a List using Iridium- Parameters:
content
- The String List content- Returns:
- The colored String List
-
colorArray
Colors an array using Iridium- Parameters:
content
- The Object array content- Returns:
- The colored String array
-
colorArray
Colors a List using Iridium then convert to a String array- Parameters:
content
- The Object List content- Returns:
- The colored String array
-