Skip to content
Success

Changes

Summary

  1. Various improvements to chat API (commit: 058d857) (details)
Commit 058d857d63a0d4b765bbd947413ede9267db2570 by md_5
Various improvements to chat API

* More versatile ComponentBuilder system
    - Allow creating a builder without an initial component
    - Duplicate the parts when component is created
    - Add getter for 'parts'
* Added cursor API for more fluid component modifying
* Don't legacy convert Titles on 1.11 or newer
* Simplify plain and legacy text converting code
    - Shares the addFormat method between all superclasses
    - Duplicate code in TranslatableComponent moved in separate method
(commit: 058d857)
The file was modifiedproxy/src/main/java/net/md_5/bungee/UserConnection.java
The file was modifiedchat/src/test/java/net/md_5/bungee/api/chat/ComponentsTest.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java
The file was modifiedchat/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/SelectorComponent.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/KeybindComponent.java
The file was modifiedchat/src/main/java/net/md_5/bungee/api/chat/ScoreComponent.java
The file was modifiedmodule/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java