Added override to wolf set/get health

This commit is contained in:
Andrew 2013-11-08 09:23:46 +13:00
parent 58b8a10fad
commit aae8903644
2 changed files with 2 additions and 3 deletions

View File

@ -13,6 +13,7 @@ public class WolfWatcher extends AgeableWatcher {
return AnimalColor.values()[(Byte) getValue(20, (byte) 14)];
}
@Override
public float getHealth() {
return (Float) getValue(18, 8F);
}
@ -58,6 +59,7 @@ public class WolfWatcher extends AgeableWatcher {
sendData(16);
}
@Override
public void setHealth(float newHealth) {
setValue(18, newHealth);
sendData(18);

View File

@ -1,6 +1,5 @@
package me.libraryaddict.disguise.events;
import me.libraryaddict.disguise.disguisetypes.Disguise;
import org.bukkit.entity.Entity;
@ -8,7 +7,6 @@ import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class DisguiseEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
@ -18,7 +16,6 @@ public class DisguiseEvent extends Event implements Cancellable {
private Disguise disguise;
private Entity disguised;
private boolean isCancelled;
public DisguiseEvent(Entity entity, Disguise disguise) {