mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
SPIGOT-6935: Make Arrow color nullable
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
0f857065bd
commit
c70f8f252c
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user