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