Added deprecated methods for the removed methods in watchers

This commit is contained in:
Andrew 2013-11-06 22:27:21 +13:00
parent f6113cb774
commit ccf1f47979
2 changed files with 16 additions and 0 deletions

View file

@ -16,6 +16,12 @@ public class CreeperWatcher extends LivingWatcher {
return (Byte) getValue(17, (byte) 0) == 1;
}
@Deprecated
public void setFuse(boolean isFused) {
setValue(16, (byte) (isFused ? 1 : -1));
sendData(16);
}
public void setFused(boolean isFused) {
setValue(16, (byte) (isFused ? 1 : -1));
sendData(16);

View file

@ -34,6 +34,11 @@ public class HorseWatcher extends AgeableWatcher {
return isTrue(16);
}
@Deprecated
public boolean isBredable() {
return isTrue(16);
}
public boolean isGrazing() {
return isTrue(32);
}
@ -58,6 +63,11 @@ public class HorseWatcher extends AgeableWatcher {
return ((Integer) getValue(16, (byte) 0) & i) != 0;
}
@Deprecated
public void setCanBred(boolean breed) {
setFlag(16, breed);
}
public void setCanBreed(boolean breed) {
setFlag(16, breed);
}