From c70f8f252c7c826b96414d23bb2630fdd1dbbef5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 19 Feb 2022 09:36:06 +1100 Subject: [PATCH] SPIGOT-6935: Make Arrow color nullable By: Doc --- paper-api/src/main/java/org/bukkit/entity/Arrow.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Arrow.java b/paper-api/src/main/java/org/bukkit/entity/Arrow.java index ec8443b670..8814519df1 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Arrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/Arrow.java @@ -28,17 +28,17 @@ public interface Arrow extends AbstractArrow { /** * Gets the color of this arrow. * - * @return arrow color + * @return arrow {@link Color} or null if not color is set */ - @NotNull + @Nullable Color getColor(); /** * 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.