Fix Aggressive misspelling

This commit is contained in:
libraryaddict 2014-07-12 07:07:54 +12:00
parent 5703d5995d
commit 98681cd93b

View File

@ -15,15 +15,25 @@ public class EndermanWatcher extends LivingWatcher {
return new ItemStack((Byte) getValue(16, (byte) 0), 1, ((Byte) getValue(17, (byte) 0))); return new ItemStack((Byte) getValue(16, (byte) 0), 1, ((Byte) getValue(17, (byte) 0)));
} }
public boolean isAgressive() { public boolean isAggressive() {
return (Byte) getValue(18, (byte) 0) == 1; return (Byte) getValue(18, (byte) 0) == 1;
} }
public void setAgressive(boolean isAgressive) { @Deprecated
setValue(18, (byte) (isAgressive ? 1 : 0)); public boolean isAgressive() {
return isAggressive();
}
public void setAggressive(boolean isAggressive) {
setValue(18, (byte) (isAggressive ? 1 : 0));
sendData(18); sendData(18);
} }
@Deprecated
public void setAgressive(boolean isAgressive) {
setAggressive(isAgressive);
}
@Override @Override
public void setItemInHand(ItemStack itemstack) { public void setItemInHand(ItemStack itemstack) {
setValue(16, (byte) (itemstack.getTypeId() & 255)); setValue(16, (byte) (itemstack.getTypeId() & 255));