MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / stripColor

Method stripColor

Utils/src/eu/the5zig/util/minecraft/ChatColor.java:151–157  ·  view source on GitHub ↗

Strips the given message of all color codes @param input String to strip of color @return A copy of the input string, without any coloring

(final String input)

Source from the content-addressed store, hash-verified

149 * @return A copy of the input string, without any coloring
150 */
151 public static String stripColor(final String input) {
152 if (input == null) {
153 return null;
154 }
155
156 return STRIP_COLOR_PATTERN.matcher(input).replaceAll("");
157 }
158
159 public static String translateAlternateColorCodes(char altColorChar, String textToTranslate) {
160 char[] b = textToTranslate.toCharArray();

Callers 15

setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95
setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95
setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95
setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95
setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95
setDisplayNameMethod · 0.95
highlightChatLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected