Class CommonGradient

java.lang.Object
me.neznamy.tab.api.chat.rgb.gradient.CommonGradient
All Implemented Interfaces:
GradientPattern
Direct Known Subclasses:
CMIGradient

public class CommonGradient extends Object implements GradientPattern
  • Constructor Details

    • CommonGradient

      public CommonGradient(Pattern pattern, Pattern legacyPattern, String containCheck, int legacyCharPosition, int startColorStart, int messageStart, int endColorStartSub)
  • Method Details

    • applyPattern

      public String applyPattern(String text, boolean ignorePlaceholders)
      Description copied from interface: GradientPattern
      Applies gradients in provided text and returns text using only #RRGGBB
      Specified by:
      applyPattern in interface GradientPattern
      Parameters:
      text - text to be reformatted
      Returns:
      reformatted text