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) {
|
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…
x
Reference in New Issue
Block a user