mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +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) {
|
||||
setItemInMainHand(type, 0);
|
||||
}
|
||||
|
||||
public void setItemInMainHand(Material type, int data) {
|
||||
Optional<WrappedBlockData> optional;
|
||||
|
||||
if (type == null)
|
||||
|
@ -46,6 +42,11 @@ public class EndermanWatcher extends InsentientWatcher {
|
|||
setData(MetaIndex.ENDERMAN_ITEM, optional);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setItemInMainHand(Material type, int data) {
|
||||
setItemInMainHand(type);
|
||||
}
|
||||
|
||||
public boolean isAggressive() {
|
||||
return getData(MetaIndex.ENDERMAN_AGRESSIVE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue