From d77d3acbc5d85a37a2716f6090c3c77e736519ae 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/Adventure.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/api/Adventure.patch b/patches/api/Adventure.patch index 5cd70049f5..5c0bf6a2a7 100644 --- a/patches/api/Adventure.patch +++ b/patches/api/Adventure.patch @@ -111,6 +111,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +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..00000000000000000000000000000000 + * @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..00000000000000000000000000000000 + * @param message the chat message + * @return a rendered chat message + */ ++ @ApiStatus.OverrideOnly + @NotNull + Component render(@NotNull Player source, @NotNull Component sourceDisplayName, @NotNull Component message); + }