Use ComponentLike instead of Component or Chat in some places

This commit is contained in:
2024-02-14 19:55:56 +01:00
parent 49a32421c0
commit d84e4c87dc
4 changed files with 13 additions and 10 deletions

View File

@@ -248,7 +248,7 @@ public abstract class ChatStatic {
* @param c the {@link Component}.
* @return a new {@link FormatableChat}.
*/
public static FormatableChat playerNameComponent(Component c) {
public static FormatableChat playerNameComponent(ComponentLike c) {
FormatableChat fc = chatComponent(c);
fc.builder.colorIfAbsent(NamedTextColor.WHITE);
return fc;