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