From 1aab1268c40d0405653b512262433af7788583b9 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 2 Nov 2024 17:08:43 +0000
Subject: [PATCH 1/2] chore(deps): Update dependency
com.puppycrawl.tools:checkstyle to v10.20.0
---
gradle/libs.versions.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index a7e75c5cb..43db3ae1d 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -3,7 +3,7 @@ version = "1.0"
[versions]
autoService = "1.1.1"
-checkstyle = "10.18.2"
+checkstyle = "10.20.0"
errorprone = "2.31.0"
examination = "1.3.0"
guava = "33.3.1-jre"
From a0a7060294d5466f3608a3f47104241a69cd5c46 Mon Sep 17 00:00:00 2001
From: zml
In the past, Minecraft platforms have typically reserved methods such as
* showTitle
for a Player
interface. While this is good
* textbook object-oriented design, it presents two key drawbacks: 1) there
* is no abstraction for groups of players, such as a Server
or a
* Team
and 2) it add boilerplate for handling special cases like
* console or command senders.
Consider the use-case of sending a message and title to every player on a
* server, and also sending a message to console. Without an Audience
,
* the code might look like this:
Now, if Server
implemented Audience
, its unified interface
* would allow users to easily send media without if-guarding console or
* iterating through the list of players:
When an Audience
is unable to perform an operation, such as sending
* a boss bar to console, it will silently fail, without logging. This
* requirement allows users to easily send media to a group of
* Audience
s without checking each for compatibility.
While the scope of Audience
may be expanded in the future to support
* new Minecraft media such as the player list, its interface will remain stateless
* and any new methods will be stubbed by default.
A bossbar consists of:
*By default, this compacts the resulting component with {@link Component#compact()}.
* * @param postProcessor method run at the end of parsing @@ -372,6 +373,7 @@ interface Builder extends AbstractBuilderBy default, this does absolutely nothing.
* * @param preProcessor method run at the start of parsing