Deprecate method with magic value parameter
This commit is contained in:
parent
55ec5056e8
commit
ee17925c53
@ -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 New Issue
Block a user