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
-
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 parseformattersOverride- a string containing vanilla formatters, ie 'lo', to apply to the text- Returns:
- the component, or null if the string doesnt match the format
-