Interface Parser

All Known Subinterfaces:
Resolver
All Known Implementing Classes:
HexParser, LegacyHexParser, LegacySpigotParser, MiniMessageColorParser, MiniMessageInteractionParser, MiniMessagePlaceholderParser, MiniMessageResolverParser, MiniMessageTextFormattingParser, MiniPlaceholdersParser, PlaceholderAPIParser

public interface Parser
  • Method Details

    • getType

      String getType()
      Returns:
      The type of the parser ParserTypes
    • parseString

      String parseString(@NotNull @NotNull String string, @NotNull @NotNull Parser.OutputType outputType)
      Parse a string
      Parameters:
      string - The string to parse
      outputType - The output type to parse for
      Returns:
      The parsed string
    • parseString

      default String parseString(@NotNull @NotNull String string, @NotNull @NotNull Parser.OutputType outputType, org.bukkit.entity.Player player)
      Parse a string in relation to a player
      Parameters:
      string - The string to parse
      outputType - The output type to parse for
      player - The player to apply whilst parsing
      Returns:
      The parsed string