From 4920989f39cfd342419cedc8d75fa36aa2d06ce7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 17 Mar 2016 14:58:12 -0400 Subject: [PATCH] Add SpectralArrow#getGlowingTicks and SpectralArrow#setGlowingTicks(int) By: Matthew --- .../java/org/bukkit/entity/SpectralArrow.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/SpectralArrow.java b/paper-api/src/main/java/org/bukkit/entity/SpectralArrow.java index 58f05128cf..1a32341c3f 100644 --- a/paper-api/src/main/java/org/bukkit/entity/SpectralArrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/SpectralArrow.java @@ -1,3 +1,22 @@ package org.bukkit.entity; -public interface SpectralArrow extends Arrow {} +/** + * Represents a spectral arrow. + */ +public interface SpectralArrow extends Arrow { + + /** + * Returns the amount of time that this arrow will apply + * the glowing effect for. + * + * @return the glowing effect ticks + */ + int getGlowingTicks(); + + /** + * Sets the amount of time to apply the glowing effect for. + * + * @param duration the glowing effect ticks + */ + void setGlowingTicks(int duration); +}