Class ColorHandler

java.lang.Object
com.stardevllc.starcore.api.colors.ColorHandler
Direct Known Subclasses:
ColorHandler_1_16_1, ColorHandler_1_8

public abstract class ColorHandler extends Object
  • Field Details

    • COLOR_SYMBOLS

      public static final char[] COLOR_SYMBOLS
    • COLOR_CODE_PATTERN

      public static final Pattern COLOR_CODE_PATTERN
    • HEX_VALUE_PATTERN

      public static final Pattern HEX_VALUE_PATTERN
    • spigotColors

      public static final Map<String,SpigotColor> spigotColors
    • customColors

      protected Map<String,CustomColor> customColors
  • Constructor Details

    • ColorHandler

      public ColorHandler()
  • Method Details

    • coloredMessage

      public void coloredMessage(org.bukkit.command.CommandSender sender, String message)
    • color

      public String color(String uncolored)
    • color

      public String color(org.bukkit.command.CommandSender sender, String uncolored)
    • color

      public String color(String uncolored, boolean translateBukkit, boolean translateCustom, boolean translateHex)
    • translateBukkit

      public String translateBukkit(String uncolored)
    • translateBukkit

      public String translateBukkit(org.bukkit.command.CommandSender sender, String uncolored)
    • translateCustom

      public String translateCustom(String uncolored)
    • translateCustom

      public String translateCustom(org.bukkit.command.CommandSender sender, String uncolored)
    • translateHex

      public String translateHex(String uncolored)
    • isHexSupported

      public static boolean isHexSupported()
    • translateHex

      public abstract String translateHex(org.bukkit.command.CommandSender sender, String uncolored)
    • color

      public String color(org.bukkit.command.CommandSender sender, String uncolored, boolean translateBukkit, boolean translateCustom, boolean translateHex)
    • hasPermission

      public boolean hasPermission(org.bukkit.command.CommandSender sender, String permission)
    • isValidCode

      public static boolean isValidCode(String code)
    • isValidHex

      public static boolean isValidHex(String str)
    • addCustomColor

      public void addCustomColor(CustomColor customColor)
    • getCustomColor

      public CustomColor getCustomColor(String code)
    • removeColor

      public void removeColor(String code)
    • isValidSymbol

      public boolean isValidSymbol(char c)
    • getPrefixSymbols

      public char[] getPrefixSymbols()
    • getCustomColors

      public Map<String,CustomColor> getCustomColors()
    • stripColor

      public static String stripColor(String text)
    • isSpigotColor

      public static boolean isSpigotColor(String code)