Skip to content
Success

Changes

Summary

  1. Add reset() and retain() methods to ComponentBuilder. (commit: 88e71ea) (details)
Commit 88e71ead05aa8cc2c810219ce80daff05c01cb3b by Thinkofdeath (Thinkofdeath)
Add reset() and retain() methods to ComponentBuilder.

This method is simple: it resets the current part to default settings, keeping only the current text. It therefore acts like the old ChatColor.RESET
code. The retain method allows for more control over what is reset.

Add a test to verify proper functioning of reset()/retain().
(commit: 88e71ea)
The file was modifiedproxy/src/test/java/net/md_5/bungee/chat/ComponentsTest.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java