mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Deprecate method with magic value parameter
This commit is contained in:
parent
55ec5056e8
commit
ee17925c53
1 changed files with 5 additions and 4 deletions
|
@ -32,10 +32,6 @@ public class EndermanWatcher extends InsentientWatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setItemInMainHand(Material type) {
|
public void setItemInMainHand(Material type) {
|
||||||
setItemInMainHand(type, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setItemInMainHand(Material type, int data) {
|
|
||||||
Optional<WrappedBlockData> optional;
|
Optional<WrappedBlockData> optional;
|
||||||
|
|
||||||
if (type == null)
|
if (type == null)
|
||||||
|
@ -46,6 +42,11 @@ public class EndermanWatcher extends InsentientWatcher {
|
||||||
setData(MetaIndex.ENDERMAN_ITEM, optional);
|
setData(MetaIndex.ENDERMAN_ITEM, optional);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public void setItemInMainHand(Material type, int data) {
|
||||||
|
setItemInMainHand(type);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isAggressive() {
|
public boolean isAggressive() {
|
||||||
return getData(MetaIndex.ENDERMAN_AGRESSIVE);
|
return getData(MetaIndex.ENDERMAN_AGRESSIVE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue