Search in sources :

Example 6 with MutableComponent

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);
    }
}
Also used : MutableComponent(net.minecraft.network.chat.MutableComponent)

Aggregations

MutableComponent (net.minecraft.network.chat.MutableComponent)6 TextComponent (net.minecraft.network.chat.TextComponent)4 URI (java.net.URI)2 URISyntaxException (java.net.URISyntaxException)2 Matcher (java.util.regex.Matcher)2 Nullable (javax.annotation.Nullable)2 ClickEvent (net.minecraft.network.chat.ClickEvent)2 TranslatableComponent (net.minecraft.network.chat.TranslatableComponent)2 LocalAddress (io.netty.channel.local.LocalAddress)1 InetAddress (java.net.InetAddress)1 SocketAddress (java.net.SocketAddress)1 UnknownHostException (java.net.UnknownHostException)1 AttributedCharacterIterator (java.text.AttributedCharacterIterator)1 MessageFormat (java.text.MessageFormat)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Instant (java.time.Instant)1 List (java.util.List)1 Map (java.util.Map)1 Optional (java.util.Optional)1 Set (java.util.Set)1