diff options
author | Shane Freeder <[email protected]> | 2022-02-18 01:10:46 +0000 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2022-02-18 01:32:48 +0000 |
commit | 2a4aef3d975e92611c1b3637c820b4560fbf3008 (patch) | |
tree | 19cd0e7849318f17c2eee5276bfc5ad74cb96587 | |
parent | c50fc3a0269cca0a5e318cead7b0fe099ffb0846 (diff) | |
download | Paper-2a4aef3d975e92611c1b3637c820b4560fbf3008.tar.gz Paper-2a4aef3d975e92611c1b3637c820b4560fbf3008.zip |
Mark ChatRender#render as ApiStatus.Override
-rw-r--r-- | patches/api/0008-Adventure.patch | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/patches/api/0008-Adventure.patch b/patches/api/0008-Adventure.patch index 06399a00b7..8d283046b9 100644 --- a/patches/api/0008-Adventure.patch +++ b/patches/api/0008-Adventure.patch @@ -101,16 +101,17 @@ index ef58a6c00f444bd498a2d8fc4e457236f393954f..ecd149157d4fb80444f34bf5633d74bc } diff --git a/src/main/java/io/papermc/paper/chat/ChatRenderer.java b/src/main/java/io/papermc/paper/chat/ChatRenderer.java new file mode 100644 -index 0000000000000000000000000000000000000000..85fd5d6777b53bab09cc54c360bb75141635bdd3 +index 0000000000000000000000000000000000000000..2fc47afbb233e6e5727a7b672f61b88ad3bab097 --- /dev/null +++ b/src/main/java/io/papermc/paper/chat/ChatRenderer.java -@@ -0,0 +1,75 @@ +@@ -0,0 +1,78 @@ +package io.papermc.paper.chat; + +import net.kyori.adventure.audience.Audience; +import net.kyori.adventure.text.Component; +import org.bukkit.entity.Player; +import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ++import org.jetbrains.annotations.ApiStatus; +import org.jetbrains.annotations.NotNull; + +/** @@ -127,6 +128,7 @@ index 0000000000000000000000000000000000000000..85fd5d6777b53bab09cc54c360bb7514 + * @param viewer the receiving {@link Audience} + * @return a rendered chat message + */ ++ @ApiStatus.OverrideOnly + @NotNull + Component render(@NotNull Player source, @NotNull Component sourceDisplayName, @NotNull Component message, @NotNull Audience viewer); + @@ -176,6 +178,7 @@ index 0000000000000000000000000000000000000000..85fd5d6777b53bab09cc54c360bb7514 + * @param message the chat message + * @return a rendered chat message + */ ++ @ApiStatus.OverrideOnly + @NotNull + Component render(@NotNull Player source, @NotNull Component sourceDisplayName, @NotNull Component message); + } |