From 02ff2f897afcf6a844f757bdf6fd1a61f7b101b4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 15 Mar 2023 08:25:18 +1100 Subject: [PATCH] SPIGOT-7292: Deprecate display color APIs while specifics are worked out --- src/main/java/org/bukkit/entity/Display.java | 4 ++++ src/main/java/org/bukkit/entity/TextDisplay.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Display.java b/src/main/java/org/bukkit/entity/Display.java index ae0f7536..c8fe5098 100644 --- a/src/main/java/org/bukkit/entity/Display.java +++ b/src/main/java/org/bukkit/entity/Display.java @@ -150,15 +150,19 @@ public interface Display extends Entity { * Gets the scoreboard team overridden glow color of this display. * * @return glow color + * @deprecated API subject to change */ @Nullable + @Deprecated public Color getGlowColorOverride(); /** * Sets the scoreboard team overridden glow color of this display. * * @param color new color + * @deprecated API subject to change */ + @Deprecated public void setGlowColorOverride(@Nullable Color color); /** diff --git a/src/main/java/org/bukkit/entity/TextDisplay.java b/src/main/java/org/bukkit/entity/TextDisplay.java index 766d6f00..a0ee539a 100644 --- a/src/main/java/org/bukkit/entity/TextDisplay.java +++ b/src/main/java/org/bukkit/entity/TextDisplay.java @@ -42,15 +42,19 @@ public interface TextDisplay extends Display { * Gets the text background color. * * @return the background color + * @deprecated API subject to change */ @Nullable + @Deprecated Color getBackgroundColor(); /** * Sets the text background color. * * @param color new background color + * @deprecated API subject to change */ + @Deprecated void setBackgroundColor(@Nullable Color color); /**