mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Added deprecated methods for the removed methods in watchers
This commit is contained in:
parent
f6113cb774
commit
ccf1f47979
2 changed files with 16 additions and 0 deletions
|
@ -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 a new issue