Interface FormatPattern

All Known Implementing Classes:
BlockedGradientPattern, HexPattern, HsvGradientPattern, LegacyAmpersandPattern, RgbGradientPattern

public interface FormatPattern
A pattern that replaces string text into a component.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.kyori.adventure.text.Component
    process​(@NotNull String in, @Nullable String formattersOverride)
    Parses the given string to a component.
  • Method Details

    • process

      @Nullable @Nullable net.kyori.adventure.text.Component process(@NotNull @NotNull String in, @Nullable @Nullable String formattersOverride)
      Parses the given string to a component.
      Parameters:
      in - the string to parse
      formattersOverride - a string containing vanilla formatters, ie 'lo', to apply to the text
      Returns:
      the component, or null if the string doesnt match the format