summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorMatthew <stteg@hotmail.com>2016-03-17 14:58:12 -0400
committermd_5 <git@md-5.net>2016-03-18 14:28:51 +1100
commit60289d346ec1b74832965d470bfef515f936222b (patch)
tree21e0a688bcc1824969430b3cfb9dac75bbd9b341 /src/main
parentb00bc638bc54d983c85ce47a942a6eec2b3c0afb (diff)
downloadbukkit-60289d346ec1b74832965d470bfef515f936222b.tar
bukkit-60289d346ec1b74832965d470bfef515f936222b.tar.gz
bukkit-60289d346ec1b74832965d470bfef515f936222b.tar.lz
bukkit-60289d346ec1b74832965d470bfef515f936222b.tar.xz
bukkit-60289d346ec1b74832965d470bfef515f936222b.zip
Add SpectralArrow#getGlowingTicks and SpectralArrow#setGlowingTicks(int)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/entity/SpectralArrow.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/SpectralArrow.java b/src/main/java/org/bukkit/entity/SpectralArrow.java
index 58f05128..1a32341c 100644
--- a/src/main/java/org/bukkit/entity/SpectralArrow.java
+++ b/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);
+}