rename to #legacyToFormat

This commit is contained in:
themode 2021-01-31 00:42:21 +01:00
parent 2f326aeaae
commit 1707cc73f5

View File

@ -69,7 +69,7 @@ public class ColoredText extends JsonMessage {
*/ */
@NotNull @NotNull
public static ColoredText ofLegacy(@NotNull String message, char colorChar) { public static ColoredText ofLegacy(@NotNull String message, char colorChar) {
final String legacy = toFormat(message, colorChar); final String legacy = legacyToFormat(message, colorChar);
return of(legacy); return of(legacy);
} }
@ -107,7 +107,7 @@ public class ColoredText extends JsonMessage {
*/ */
@NotNull @NotNull
public ColoredText appendLegacy(@NotNull String message, char colorChar) { public ColoredText appendLegacy(@NotNull String message, char colorChar) {
final String legacy = toFormat(message, colorChar); final String legacy = legacyToFormat(message, colorChar);
return of(legacy); return of(legacy);
} }
@ -327,7 +327,7 @@ public class ColoredText extends JsonMessage {
* @return the converted legacy text * @return the converted legacy text
*/ */
@NotNull @NotNull
private static String toFormat(@NotNull String message, char colorChar) { private static String legacyToFormat(@NotNull String message, char colorChar) {
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
for (int i = 0; i < message.length(); i++) { for (int i = 0; i < message.length(); i++) {