// Path: src/main/java/mods/belgabor/amtweaker/helpers/InputHelper.java
// public static ItemStack toStack(IItemStack iStack) {
//     return toStack(iStack, false);
// }
// 
// Path: src/main/java/mods/belgabor/amtweaker/helpers/StackHelper.java
// public static boolean areEqual(ItemStack stack, ItemStack stack2) {
//     return !(stack == null || stack2 == null) && stack.isItemEqual(stack2);
// }


import stanhebben.zenscript.annotations.ZenMethod;
import java.util.ArrayList;
import java.util.List;
import static mods.belgabor.amtweaker.helpers.InputHelper.toStack;
import static mods.belgabor.amtweaker.helpers.StackHelper.areEqual;
import minetweaker.IUndoableAction;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IItemStack;
import mods.defeatedcrow.api.recipe.RecipeRegisterManager;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;
        }
    }
*/

    private static class SlagLootAddAction implements IUndoableAction {
        private final ItemStack item;
        private final int tier;
        private final List<ItemStack> list;

        public SlagLootAddAction(IItemStack item, int tier) {
            this.item = toStack(item);
            this.tier = tier;
            this.list = RecipeRegisterManager.slagLoot.getLootList(tier);
            //this.list = getLootList(tier);
        }

        @Override
        public void apply() {
            RecipeRegisterManager.slagLoot.addLoot(item, tier);
        }

        @Override
        public boolean canUndo() {
            return true;
        }

        @Override
        public void undo() {
            boolean found = false;
            for(ItemStack i: list) {
// Path: src/main/java/mods/belgabor/amtweaker/helpers/InputHelper.java
// public static ItemStack toStack(IItemStack iStack) {
//     return toStack(iStack, false);
// }
// 
// Path: src/main/java/mods/belgabor/amtweaker/helpers/StackHelper.java
// public static boolean areEqual(ItemStack stack, ItemStack stack2) {
//     return !(stack == null || stack2 == null) && stack.isItemEqual(stack2);
// }


// Path: src/main/java/mods/belgabor/amtweaker/mods/amt/handlers/Slag.java
import stanhebben.zenscript.annotations.ZenMethod;
import java.util.ArrayList;
import java.util.List;
import static mods.belgabor.amtweaker.helpers.InputHelper.toStack;
import static mods.belgabor.amtweaker.helpers.StackHelper.areEqual;
import minetweaker.IUndoableAction;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IItemStack;
import mods.defeatedcrow.api.recipe.RecipeRegisterManager;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;

        }
    }
*/

    private static class SlagLootAddAction implements IUndoableAction {
        private final ItemStack item;
        private final int tier;
        private final List<ItemStack> list;

        public SlagLootAddAction(IItemStack item, int tier) {
            this.item = toStack(item);
            this.tier = tier;
            this.list = RecipeRegisterManager.slagLoot.getLootList(tier);
            //this.list = getLootList(tier);
        }

        @Override
        public void apply() {
            RecipeRegisterManager.slagLoot.addLoot(item, tier);
        }

        @Override
        public boolean canUndo() {
            return true;
        }

        @Override
        public void undo() {
            boolean found = false;
            for(ItemStack i: list) {
                if (areEqual(i, item)) {