summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2014-01-21 22:50:15 -0500
committerNate Mortensen <nate.richard.mortensen@gmail.com>2014-01-30 21:47:44 -0700
commit1fa4b69bd81fa163b11fcd80d47edbf1967ea65c (patch)
tree4a2202d758190d717163d4e834e35e10fd3621e7 /src/main
parent8a5ad89a680ca5442f486f56553077cdfee921fa (diff)
downloadcraftbukkit-1fa4b69bd81fa163b11fcd80d47edbf1967ea65c.tar
craftbukkit-1fa4b69bd81fa163b11fcd80d47edbf1967ea65c.tar.gz
craftbukkit-1fa4b69bd81fa163b11fcd80d47edbf1967ea65c.tar.lz
craftbukkit-1fa4b69bd81fa163b11fcd80d47edbf1967ea65c.tar.xz
craftbukkit-1fa4b69bd81fa163b11fcd80d47edbf1967ea65c.zip
[Bleeding] Implement setCharged and getCharged for WitherSkull. Addresses BUKKIT-3060
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java
index ce25a127..2e276166 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftWitherSkull.java
@@ -11,6 +11,16 @@ public class CraftWitherSkull extends CraftFireball implements WitherSkull {
}
@Override
+ public void setCharged(boolean charged) {
+ getHandle().a(charged);
+ }
+
+ @Override
+ public boolean isCharged() {
+ return getHandle().f();
+ }
+
+ @Override
public EntityWitherSkull getHandle() {
return (EntityWitherSkull) entity;
}