summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorphanOne <morphanone@gmail.com>2013-12-16 22:30:13 -0500
committerNate Mortensen <nate.richard.mortensen@gmail.com>2014-01-30 21:47:44 -0700
commitac53442e7e07f86117dfa0862ed1dc2f4c26126b (patch)
tree492b4a33a7e33168d6584ca0b11dc08d10beaee4 /src
parentfb8c5547b3e8f2b44567b68c3232a4b5db3e9f0c (diff)
downloadcraftbukkit-ac53442e7e07f86117dfa0862ed1dc2f4c26126b.tar
craftbukkit-ac53442e7e07f86117dfa0862ed1dc2f4c26126b.tar.gz
craftbukkit-ac53442e7e07f86117dfa0862ed1dc2f4c26126b.tar.lz
craftbukkit-ac53442e7e07f86117dfa0862ed1dc2f4c26126b.tar.xz
craftbukkit-ac53442e7e07f86117dfa0862ed1dc2f4c26126b.zip
Add setCritical and isCritical methods to CraftArrow.java. Adds BUKKIT-5113
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
index bea6067c..3f1bcd25 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
@@ -37,6 +37,14 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
return getHandle().aw;
}
+ public boolean isCritical() {
+ return getHandle().f();
+ }
+
+ public void setCritical(boolean critical) {
+ getHandle().a(critical);
+ }
+
@Override
public EntityArrow getHandle() {
return (EntityArrow) entity;