SPIGOT-6935: Make Arrow color nullable

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-02-19 09:36:06 +11:00
parent 0f857065bd
commit c70f8f252c

View File

@ -28,17 +28,17 @@ public interface Arrow extends AbstractArrow {
/** /**
* Gets the color of this arrow. * Gets the color of this arrow.
* *
* @return arrow color * @return arrow {@link Color} or null if not color is set
*/ */
@NotNull @Nullable
Color getColor(); Color getColor();
/** /**
* Sets the color of this arrow. Will be applied as a tint to its particles. * Sets the color of this arrow. Will be applied as a tint to its particles.
* *
* @param color arrow color * @param color arrow color, null to clear the color
*/ */
void setColor(@NotNull Color color); void setColor(@Nullable Color color);
/** /**
* Checks for the presence of custom potion effects. * Checks for the presence of custom potion effects.