Class CommonGradient
java.lang.Object
me.neznamy.tab.api.chat.rgb.gradient.CommonGradient
- All Implemented Interfaces:
GradientPattern
- Direct Known Subclasses:
CMIGradient
-
Constructor Summary
ConstructorsConstructorDescriptionCommonGradient(Pattern pattern, Pattern legacyPattern, String containCheck, int legacyCharPosition, int startColorStart, int messageStart, int endColorStartSub) -
Method Summary
Modifier and TypeMethodDescriptionapplyPattern(String text, boolean ignorePlaceholders) Applies gradients in provided text and returns text using only #RRGGBBMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.neznamy.tab.api.chat.rgb.gradient.GradientPattern
asGradient
-
Constructor Details
-
CommonGradient
-
-
Method Details
-
applyPattern
Description copied from interface:GradientPatternApplies gradients in provided text and returns text using only #RRGGBB- Specified by:
applyPatternin interfaceGradientPattern- Parameters:
text- text to be reformatted- Returns:
- reformatted text
-