Esempio n. 1
0
 @Override
 public boolean isEnabled() {
   return main == null || main.getHasStack();
 }
Esempio n. 2
0
 private boolean isUpgradeItem(ItemStack itemstack) {
   Upgrade upgrade = ModItems.upgrade.getUpgrade(itemstack);
   return upgrade != null && upgrade.isValid(main != null ? main.getStack() : null);
 }