Fixed spelling in GhastWatcher

This commit is contained in:
libraryaddict 2013-11-24 08:45:32 +13:00
parent 42cac092f6
commit 3ab4706af3

View File

@ -8,13 +8,24 @@ public class GhastWatcher extends LivingWatcher {
super(disguise); super(disguise);
} }
@Deprecated
public boolean isAgressive() { public boolean isAgressive() {
return (Byte) getValue(16, (byte) 0) == 1; return (Byte) getValue(16, (byte) 0) == 1;
} }
@Deprecated
public void setAgressive(boolean isAgressive) { public void setAgressive(boolean isAgressive) {
setValue(16, (byte) (isAgressive ? 1 : 0)); setValue(16, (byte) (isAgressive ? 1 : 0));
sendData(16); sendData(16);
} }
public boolean isAggressive() {
return (Byte) getValue(16, (byte) 0) == 1;
}
public void setAggressive(boolean isAgressive) {
setValue(16, (byte) (isAgressive ? 1 : 0));
sendData(16);
}
} }