Class Utils
java.lang.Object
studio.magemonkey.codex.legacy.utils.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringFixes color characters in a stringstatic String[]Fixes color characters in a Liststatic StringgetFriendlyTime(long millis) static StringlocToString(org.bukkit.Location loc) static StringlocToString(org.bukkit.Location loc, boolean direction) static longparseDateDiff(String time, boolean future) static longparseDateDiff(String time, long from, boolean future) static Integerstatic StringremoveColors(String string) static String[]removeColors(String... strings) removeColors(List<String> list) Strips colors from the list.static org.bukkit.LocationstringToLoc(String locStr) static Integer
-
Method Details
-
parseInt
-
fixColors
Fixes color characters in a string- Parameters:
string- message to fix- Returns:
- new string
-
fixColors
-
fixColors
Fixes color characters in a List- Parameters:
list- List to fix- Returns:
- new List
-
removeColors
Strips colors from the list.- Parameters:
list- List of Strings to remove color from- Returns:
- New ArrayList of cleaned Strings
-
removeColors
-
removeColors
-
toInt
-
parseDateDiff
-
parseDateDiff
-
getFriendlyTime
-
locToString
-
locToString
-
stringToLoc
-