Deprecate method with magic value parameter

This commit is contained in:
Mark Vainomaa 2019-05-09 03:08:06 +03:00
parent 55ec5056e8
commit ee17925c53

View File

@ -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);
} }