Class StringUtil
java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.StringUtil
Some utilities for strings.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
toRoman
Converts an integer to a roman numeral.- Parameters:
number- the number to convert- Returns:
- the roman numeral, or 0 because 0 doesn't exist in roman numerals
-
color
-
color
-
removeColors
Removes all the colours from a string.- Parameters:
str- the string to remove colours from- Returns:
- the string without colours
-