mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Rename #toLegacy to #toFormat since it didn't make sense
This commit is contained in:
parent
8f174f2c87
commit
2f326aeaae
@ -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 = toLegacy(message, colorChar);
|
final String legacy = toFormat(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 = toLegacy(message, colorChar);
|
final String legacy = toFormat(message, colorChar);
|
||||||
return of(legacy);
|
return of(legacy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +326,8 @@ public class ColoredText extends JsonMessage {
|
|||||||
* @param colorChar the char used before the color code
|
* @param colorChar the char used before the color code
|
||||||
* @return the converted legacy text
|
* @return the converted legacy text
|
||||||
*/
|
*/
|
||||||
private static String toLegacy(@NotNull String message, char colorChar) {
|
@NotNull
|
||||||
|
private static String toFormat(@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