Class StringUtility

java.lang.Object
net.swofty.utility.StringUtility

public class StringUtility extends Object
  • 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

      public static String getAsRomanNumeral(int num)
    • getTextFromComponent

      public static String getTextFromComponent(net.kyori.adventure.text.Component component)
    • toNormalCase

      public static String toNormalCase(String string)
    • commaify

      public static String commaify(double d)
    • splitByWordAndLength

      public static List<String> splitByWordAndLength(String string, int splitLength, String separator)
    • random

      public static double random(double min, double max)
    • zeroed

      public static String zeroed(long l)
    • limitStringLength

      public static String limitStringLength(String s, int charLimit)
    • ntify

      public static String ntify(int i)