Interface GradientPattern

All Known Implementing Classes:
CMIGradient, CommonGradient, KyoriGradient

public interface GradientPattern
Abstract class for applying different gradient patterns
  • Method Summary

    Modifier and Type
    Method
    Description
    applyPattern(String text, boolean ignorePlaceholders)
    Applies gradients in provided text and returns text using only #RRGGBB
    default String
    asGradient(TextColor start, String text, TextColor end)
    Returns gradient text based on start color, text and end color
  • Method Details

    • applyPattern

      String applyPattern(String text, boolean ignorePlaceholders)
      Applies gradients in provided text and returns text using only #RRGGBB
      Parameters:
      text - text to be reformatted
      Returns:
      reformatted text
    • asGradient

      default String asGradient(TextColor start, String text, TextColor end)
      Returns gradient text based on start color, text and end color
      Parameters:
      start - start color
      text - text to be reformatted
      end - end color
      Returns:
      reformatted text