Class HsvGradientPattern

java.lang.Object
net.lucypoulton.squirtgun.format.pattern.HsvGradientPattern
All Implemented Interfaces:
FormatPattern

public final class HsvGradientPattern extends Object implements FormatPattern
The HSV gradient pattern, fading between two HSV hues with a consistent saturation and value in the format {hsv:hhssvv>}text{hh<}. This is an internal class, you shouldn't need to use it.
  • Constructor Details

    • HsvGradientPattern

      public HsvGradientPattern()
  • Method Details

    • process

      public net.kyori.adventure.text.Component process(@NotNull @NotNull String in, String format)
      Description copied from interface: FormatPattern
      Parses the given string to a component.
      Specified by:
      process in interface FormatPattern
      Parameters:
      in - the string to parse
      format - a string containing vanilla formatters, ie 'lo', to apply to the text
      Returns:
      the component, or null if the string doesnt match the format