From 1fa4b69bd81fa163b11fcd80d47edbf1967ea65c Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 21 Jan 2014 22:50:15 -0500 Subject: [PATCH] [Bleeding] Implement setCharged and getCharged for WitherSkull. Addresses BUKKIT-3060 --- .../bukkit/craftbukkit/entity/CraftWitherSkull.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java index ce25a12770..2e2761661c 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java @@ -10,6 +10,16 @@ public class CraftWitherSkull extends CraftFireball implements WitherSkull { super(server, entity); } + @Override + public void setCharged(boolean charged) { + getHandle().a(charged); + } + + @Override + public boolean isCharged() { + return getHandle().f(); + } + @Override public EntityWitherSkull getHandle() { return (EntityWitherSkull) entity;