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