summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParker Hawke <hawkeboyz2@hotmail.com>2018-05-01 15:28:26 -0400
committermd_5 <git@md-5.net>2018-05-06 14:13:32 +1000
commit222f7d167f7af6b4a96a320c0d69279c929ab17d (patch)
tree53450f6e03f7345cd875651eb5a5f1cc39153256
parent33a62b95913e6df50dc60f0fdad3144ba094bef7 (diff)
downloadbukkit-222f7d167f7af6b4a96a320c0d69279c929ab17d.tar
bukkit-222f7d167f7af6b4a96a320c0d69279c929ab17d.tar.gz
bukkit-222f7d167f7af6b4a96a320c0d69279c929ab17d.tar.lz
bukkit-222f7d167f7af6b4a96a320c0d69279c929ab17d.tar.xz
bukkit-222f7d167f7af6b4a96a320c0d69279c929ab17d.zip
Add Arrow tile methods
-rw-r--r--src/main/java/org/bukkit/entity/Arrow.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Arrow.java b/src/main/java/org/bukkit/entity/Arrow.java
index 795e40de..752eeb5e 100644
--- a/src/main/java/org/bukkit/entity/Arrow.java
+++ b/src/main/java/org/bukkit/entity/Arrow.java
@@ -1,5 +1,7 @@
package org.bukkit.entity;
+import org.bukkit.block.Block;
+
/**
* Represents an arrow.
*/
@@ -41,6 +43,22 @@ public interface Arrow extends Projectile {
public void setCritical(boolean critical);
/**
+ * Gets whether this arrow is in a block or not.
+ * <p>
+ * Arrows in a block are motionless and may be picked up by players.
+ *
+ * @return true if in a block
+ */
+ public boolean isInBlock();
+
+ /**
+ * Gets the block to which this arrow is attached.
+ *
+ * @return the attached block or null if not attached
+ */
+ public Block getAttachedBlock();
+
+ /**
* Gets the current pickup status of this arrow.
*
* @return the pickup status of this arrow.