java.lang.Object
org.lushplugins.chatcolorhandler.common.parser.HexParser
All Implemented Interfaces:
Parser

public class HexParser extends Object implements Parser
Translates hex in format "&#rrggbb"
  • Field Details

    • INSTANCE

      public static final HexParser INSTANCE
  • Constructor Details

    • HexParser

      public HexParser()
  • Method Details

    • getType

      public ParserType getType()
      Specified by:
      getType in interface Parser
      Returns:
      The type of the parser or null if it should only apply when using all parsers
    • parseString

      public String parseString(String string, @Nullable @Nullable org.bukkit.entity.Player player)
      Description copied from interface: Parser
      Parse a string in relation to a player
      Specified by:
      parseString in interface Parser
      Parameters:
      string - The string to parse
      player - The player to apply whilst parsing
      Returns:
      The parsed string