Class ColorNameInterpreter

java.lang.Object
org.sgrewritten.stargate.colors.ColorNameInterpreter

public class ColorNameInterpreter extends Object
  • Method Details

    • getDefaultPointerColor

      public static net.md_5.bungee.api.ChatColor getDefaultPointerColor(String defaultString)
      Parameters:
      defaultString -

      A string representation of the default color

      Returns:

      The resulting color from the string representation

    • getDefaultTextColor

      public static net.md_5.bungee.api.ChatColor getDefaultTextColor(String defaultString)
      Parameters:
      defaultString -

      A string representation of the default color

      Returns:

      The default color based on the string representation

    • getColor

      public static net.md_5.bungee.api.ChatColor getColor(String color)
      Determine a possible color based out of a string Accepts: CSS color codes, DyeColors, ChatColors, java.awt.Colors, hex, rgb, rgba, hsb
      Parameters:
      color -

      A valid color string

      Returns:

      A color