ComponentBuilder simplifies creating basic messages by allowing the use of a chainable builder.
new ComponentBuilder("Hello ").color(ChatColor.RED). append("World").color(ChatColor.BLUE). append("!").bold(true).create();
All methods (excluding {@link #append(String)} and {@link #create()} work onthe last part appended to the builder, so in the example above "Hello " would be {@link net.md_5.bungee.api.ChatColor#RED} and "World" would be{@link net.md_5.bungee.api.ChatColor#BLUE} but "!" would be bold and{@link net.md_5.bungee.api.ChatColor#BLUE} because append copies the previouspart's formatting
|
|
|
|