Package studio.magemonkey.codex.util
Class StringUT
java.lang.Object
studio.magemonkey.codex.util.StringUT
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringcapitalizeFirstLetter(String original) static StringcapitalizeFully(String str) static Stringstatic StringBuildercolor(StringBuilder str) static StringRemoves multiple color codes that are 'color of color'.static Stringstatic StringcolorHexRaw(String str) static Stringstatic Stringstatic Stringstatic Stringstatic StringextractCommandName(String cmd) getByFirstLetters(String arg, List<String> source) static Stringstatic doublestatic doublestatic int[]getIntArray(String str) static intgetInteger(String input, int def) static intgetInteger(String input, int def, boolean nega) static booleanisCustomBoolean(String str) static Stringstatic Stringstatic booleanparseCustomBoolean(String str) static net.md_5.bungee.api.chat.BaseComponent
-
Field Details
-
HEX_PATTERN
-
-
Constructor Details
-
StringUT
public StringUT()
-
-
Method Details
-
oneSpace
-
colorSensitiveStrip
-
noSpace
-
color
-
color
-
colorFix
Removes multiple color codes that are 'color of color'. Example: '&a&b&cText' -> '&cText'.- Parameters:
str- String to fix.- Returns:
- A string with a proper color codes formatting.
-
colorHex
-
colorHexRaw
-
colorRaw
-
colorOff
-
color
-
color
-
replace
-
replace
-
replace
-
getDouble
-
getDouble
-
getInteger
-
getInteger
-
getIntArray
-
capitalizeFully
-
capitalizeFirstLetter
-
getByFirstLetters
-
extractCommandName
-
isCustomBoolean
-
parseCustomBoolean
-
c
-
d
-
getColor
-
wrap
-
wrap
-
parseJson
-