Package net.swofty.utility
Class StringUtility
java.lang.Object
net.swofty.utility.StringUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
commaify
(double d) static String
getAsRomanNumeral
(int num) static net.minestom.server.item.Material
getMaterialFromBlock
(net.minestom.server.instance.block.Block block) static String
getTextFromComponent
(net.kyori.adventure.text.Component component) static String
limitStringLength
(String s, int charLimit) static String
ntify
(int i) static double
random
(double min, double max) splitByWordAndLength
(String string, int splitLength, String separator) static String
toNormalCase
(String string) static String
zeroed
(long l)
-
Field Details
-
ALPHABET
public static char[] ALPHABET
-
-
Constructor Details
-
StringUtility
public StringUtility()
-
-
Method Details
-
getMaterialFromBlock
public static net.minestom.server.item.Material getMaterialFromBlock(net.minestom.server.instance.block.Block block) -
getAsRomanNumeral
-
getTextFromComponent
-
toNormalCase
-
commaify
-
splitByWordAndLength
-
random
public static double random(double min, double max) -
zeroed
-
limitStringLength
-
ntify
-