From 2a4aef3d975e92611c1b3637c820b4560fbf3008 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Fri, 18 Feb 2022 01:10:46 +0000 Subject: [PATCH] Mark ChatRender#render as ApiStatus.Override --- patches/api/0008-Adventure.patch | 7 +++++-- 1 file 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); + }