Class Colorizer
- java.lang.Object
-
- com.github.siroshun09.mcmessage.util.Colorizer
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull Stringcolorize(String str)static @NotNull StringBuildercolorize(StringBuilder builder)static @NotNull StringstripColorCode(String str)Strips the given string of color.static @NotNull StringstripColorCode(String str, @NotNull Pattern pattern)static @NotNull StringstripMarkedColorCode(String str)
-
-
-
Method Detail
-
colorize
@NotNull public static @NotNull StringBuilder colorize(StringBuilder builder)
-
stripColorCode
@NotNull public static @NotNull String stripColorCode(String str)
Strips the given string of color.Example:
§aHello, §bWorld!->Hello, World!- Parameters:
str- the string to strip- Returns:
- stripped string
-
stripMarkedColorCode
@NotNull public static @NotNull String stripMarkedColorCode(String str)
-
stripColorCode
@NotNull public static @NotNull String stripColorCode(String str, @NotNull @NotNull Pattern pattern)
-
-