mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-02 11:21:15 +01:00
rename to #legacyToFormat
This commit is contained in:
parent
2f326aeaae
commit
1707cc73f5
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user