// Path: src/main/java/mods/belgabor/amtweaker/helpers/InputHelper.java
// public static boolean isABlock(IItemStack block) {
//     if (!(isABlock(toStack(block)))) {
//         MineTweakerAPI.getLogger().logError("Item must be a block");
//         return false;
//     } else return true;
// }
// 
// Path: src/main/java/mods/belgabor/amtweaker/helpers/InputHelper.java
// public static ItemStack toStack(IItemStack iStack) {
//     return toStack(iStack, false);
// }


import minetweaker.IUndoableAction;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IItemStack;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
import static mods.belgabor.amtweaker.helpers.InputHelper.isABlock;
import static mods.belgabor.amtweaker.helpers.InputHelper.toStack;
package mods.belgabor.amtweaker.mods.vanilla.handlers;



/**
 * Created by Belgabor on 03.06.2016.
 */

@ZenClass("mods.vanilla.HarvestLevel")
public class HarvestLevel {
 
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Change harvest level
    
    @ZenMethod
    public static void set(IItemStack item, String tool, int level) {
        if (item == null) {
            MineTweakerAPI.getLogger().logError("Harvest level: Block/Item must not be null!");
            return;
        }
// Path: src/main/java/mods/belgabor/amtweaker/helpers/InputHelper.java
// public static boolean isABlock(IItemStack block) {
//     if (!(isABlock(toStack(block)))) {
//         MineTweakerAPI.getLogger().logError("Item must be a block");
//         return false;
//     } else return true;
// }
// 
// 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/mods/vanilla/handlers/HarvestLevel.java
import minetweaker.IUndoableAction;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IItemStack;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
import static mods.belgabor.amtweaker.helpers.InputHelper.isABlock;
import static mods.belgabor.amtweaker.helpers.InputHelper.toStack;

package mods.belgabor.amtweaker.mods.vanilla.handlers;



/**
 * Created by Belgabor on 03.06.2016.
 */

@ZenClass("mods.vanilla.HarvestLevel")
public class HarvestLevel {
 
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Change harvest level
    
    @ZenMethod
    public static void set(IItemStack item, String tool, int level) {
        if (item == null) {
            MineTweakerAPI.getLogger().logError("Harvest level: Block/Item must not be null!");
            return;
        }
        if (isABlock(toStack(item))) {