mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +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
|
||||
public static ColoredText ofLegacy(@NotNull String message, char colorChar) {
|
||||
final String legacy = toLegacy(message, colorChar);
|
||||
final String legacy = toFormat(message, colorChar);
|
||||
return of(legacy);
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ public class ColoredText extends JsonMessage {
|
||||
*/
|
||||
@NotNull
|
||||
public ColoredText appendLegacy(@NotNull String message, char colorChar) {
|
||||
final String legacy = toLegacy(message, colorChar);
|
||||
final String legacy = toFormat(message, colorChar);
|
||||
return of(legacy);
|
||||
}
|
||||
|
||||
@ -326,7 +326,8 @@ public class ColoredText extends JsonMessage {
|
||||
* @param colorChar the char used before the color code
|
||||
* @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();
|
||||
|
||||
for (int i = 0; i < message.length(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user