Added override to wolf set/get health
This commit is contained in:
parent
58b8a10fad
commit
aae8903644
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user