diff options
author | MorphanOne <morphanone@gmail.com> | 2013-12-16 22:30:13 -0500 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2014-01-30 21:47:44 -0700 |
commit | ac53442e7e07f86117dfa0862ed1dc2f4c26126b (patch) | |
tree | 492b4a33a7e33168d6584ca0b11dc08d10beaee4 /src/main | |
parent | fb8c5547b3e8f2b44567b68c3232a4b5db3e9f0c (diff) | |
download | craftbukkit-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/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java | 8 |
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; |