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