Class CustomStringUtil

java.lang.Object
com.mrbysco.enhancedanvils.util.CustomStringUtil

public class CustomStringUtil extends Object
A custom version of StringUtil from minecraft without the formatting code filter.
  • Constructor Details

    • CustomStringUtil

      public CustomStringUtil()
  • Method Details

    • filterText

      public static String filterText(String text)
    • filterText

      public static String filterText(String text, boolean allowLineBreaks)
    • isAllowedCharacter

      public static boolean isAllowedCharacter(int character)
    • fullyFiltered

      public static String fullyFiltered(String text)
      Removes all formatting codes from a string. Known formatting codes are: §0-§9, §a-§f, §k-§r Known font codes are §w, §x, §y, §z
      Parameters:
      text - The text to filter
      Returns:
      The filtered text without formatting codes