use of net.minecraft.network.chat.MutableComponent in project Denizen-For-Bukkit by DenizenScript.
the class SidebarImpl method setDisplayName.
@Override
protected void setDisplayName(String title) {
if (this.obj1 != null) {
MutableComponent chatComponentTitle = Handler.componentToNMS(FormattedTextHelper.parse(title, ChatColor.WHITE));
this.obj1.setDisplayName(chatComponentTitle);
this.obj2.setDisplayName(chatComponentTitle);
}
}
Aggregations