Class RgbGradientPattern
java.lang.Object
net.lucypoulton.squirtgun.format.pattern.RgbGradientPattern
- All Implemented Interfaces:
FormatPattern
The RGB gradient pattern, fading between two RGB codes in the format {#rrggbb>}text{#rrggbb<}.
This is an internal class, you shouldn't need to use it.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RgbGradientPattern
public RgbGradientPattern()
-
-
Method Details
-
process
@Nullable public @Nullable net.kyori.adventure.text.Component process(@NotNull @NotNull String in, String formatter)Description copied from interface:FormatPatternParses the given string to a component.- Specified by:
processin interfaceFormatPattern- Parameters:
in- the string to parseformatter- a string containing vanilla formatters, ie 'lo', to apply to the text- Returns:
- the component, or null if the string doesnt match the format
-