From ac53442e7e07f86117dfa0862ed1dc2f4c26126b Mon Sep 17 00:00:00 2001 From: MorphanOne Date: Mon, 16 Dec 2013 22:30:13 -0500 Subject: [PATCH] Add setCritical and isCritical methods to CraftArrow.java. Adds BUKKIT-5113 --- .../java/org/bukkit/craftbukkit/entity/CraftArrow.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java index bea6067c1e..3f1bcd2590 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;