#840: Adjust annotations in Display entity interface

- Undeprecate #get/setGlowColorOverride() (reverts ff78a4cdaf, see f328857bac)
- Remove erroneous @NotNull annotation on setBillboard()

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2023-03-29 19:27:48 +11:00
parent fc1538ac4d
commit 15d0b9b07f

View File

@ -143,26 +143,21 @@ public interface Display extends Entity {
* *
* @param billboard new setting * @param billboard new setting
*/ */
@NotNull
public void setBillboard(@NotNull Billboard billboard); public void setBillboard(@NotNull Billboard billboard);
/** /**
* Gets the scoreboard team overridden glow color of this display. * Gets the scoreboard team overridden glow color of this display.
* *
* @return glow color * @return glow color
* @deprecated API subject to change
*/ */
@Nullable @Nullable
@Deprecated
public Color getGlowColorOverride(); public Color getGlowColorOverride();
/** /**
* Sets the scoreboard team overridden glow color of this display. * Sets the scoreboard team overridden glow color of this display.
* *
* @param color new color * @param color new color
* @deprecated API subject to change
*/ */
@Deprecated
public void setGlowColorOverride(@Nullable Color color); public void setGlowColorOverride(@Nullable Color color);
/** /**