Added deprecated methods for the removed methods in watchers
This commit is contained in:
parent
f6113cb774
commit
ccf1f47979
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user