// Path: src/main/java/oreregistry/OreRegistry.java
// @Mod(modid = Constants.MOD_ID, name = Constants.NAME, version = Constants.VERSION, acceptedMinecraftVersions = "[1.11]")
// public class OreRegistry {
// 
// 	@Nullable
// 	@Mod.Instance(Constants.MOD_ID)
// 	public static OreRegistry instance;
// 
// 	public static final ResourceRegistry registry;
// 	public static final ResourceInfo helper;
// 	public static final List<ItemStack> unusedItems = new ArrayList<>();
// 	@Nullable
// 	public static File configFile;
// 
// 	static {
// 		OreRegistryApi.registry = registry = new ResourceRegistry();
// 		OreRegistryApi.info = helper = new ResourceInfo();
// 	}
// 
// 	@Mod.EventHandler
// 	public void preInit(FMLPreInitializationEvent event) {
// 		registerVanilla(OreRegistryApi.registry);
// 		MinecraftForge.EVENT_BUS.register(new EventHandler());
// 		new PacketHandler();
// 		configFile = event.getSuggestedConfigurationFile();
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(FMLInitializationEvent event) {
// 		Config.load(event.getSide());
// 	}
// 
// 	private void registerVanilla(IResourceRegistry resourceRegistry) {
// 		final IResource iron = resourceRegistry.registerResource(ResourceTypes.IRON);
// 		iron.registerProduct(INGOT, new ItemStack(Items.IRON_INGOT));
// 		iron.registerProduct(NUGGET, new ItemStack(Items.field_191525_da));
// 		iron.registerProduct(BLOCK, new ItemStack(Blocks.IRON_BLOCK));
// 		iron.registerProduct(ORE, new ItemStack(Blocks.IRON_ORE));
// 
// 		final IResource gold = resourceRegistry.registerResource(ResourceTypes.GOLD);
// 		gold.registerProduct(INGOT, new ItemStack(Items.GOLD_INGOT));
// 		gold.registerProduct(NUGGET, new ItemStack(Items.GOLD_NUGGET));
// 		gold.registerProduct(BLOCK, new ItemStack(Blocks.GOLD_BLOCK));
// 		gold.registerProduct(ORE, new ItemStack(Blocks.GOLD_ORE));
// 
// 		final IResource emerald = resourceRegistry.registerResource(ResourceTypes.EMERALD);
// 		emerald.registerProduct(GEM, new ItemStack(Items.EMERALD));
// 		emerald.registerProduct(BLOCK, new ItemStack(Blocks.EMERALD_BLOCK));
// 		emerald.registerProduct(ORE, new ItemStack(Blocks.EMERALD_ORE));
// 
// 		final IResource diamond = resourceRegistry.registerResource(ResourceTypes.DIAMOND);
// 		diamond.registerProduct(GEM, new ItemStack(Items.DIAMOND));
// 		diamond.registerProduct(BLOCK, new ItemStack(Blocks.DIAMOND_BLOCK));
// 		diamond.registerProduct(ORE, new ItemStack(Blocks.DIAMOND_ORE));
// 
// 		final IResource lapis = resourceRegistry.registerResource(ResourceTypes.LAPIS);
// 		lapis.registerProduct(GEM, new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()));
// 		lapis.registerProduct(BLOCK, new ItemStack(Blocks.LAPIS_BLOCK));
// 		lapis.registerProduct(ORE, new ItemStack(Blocks.LAPIS_ORE));
// 
// 		final IResource redstone = resourceRegistry.registerResource(ResourceTypes.REDSTONE);
// 		redstone.registerProduct(DUST, new ItemStack(Items.REDSTONE));
// 		redstone.registerProduct(BLOCK, new ItemStack(Blocks.REDSTONE_BLOCK));
// 		redstone.registerProduct(ORE, new ItemStack(Blocks.REDSTONE_ORE));
// 
// 		final IResource quartz = resourceRegistry.registerResource(ResourceTypes.QUARTZ);
// 		quartz.registerProduct(GEM, new ItemStack(Items.QUARTZ));
// 		quartz.registerProduct(BLOCK, new ItemStack(Blocks.QUARTZ_BLOCK));
// 		quartz.registerProduct(ORE, new ItemStack(Blocks.QUARTZ_ORE));
// 
// 		final IResource coal = resourceRegistry.registerResource(ResourceTypes.COAL);
// 		coal.registerProduct(GEM, new ItemStack(Items.COAL));
// 		coal.registerProduct(BLOCK, new ItemStack(Blocks.COAL_BLOCK));
// 		coal.registerProduct(ORE, new ItemStack(Blocks.COAL_ORE));
// 	}
// 
// 	public File getConfigFile(){
// 		return configFile;
// 	}
// }


import mezz.jei.api.BlankModPlugin;
import mezz.jei.api.IModRegistry;
import mezz.jei.api.JEIPlugin;
import mezz.jei.api.ingredients.IIngredientBlacklist;
import net.minecraft.item.ItemStack;
import oreregistry.OreRegistry;
/*
 * Copyright (c) 2017 Nedelosk, Mezz
 *
 * This work (the MOD) is licensed under the "MIT" License, see LICENSE for details.
 */
package oreregistry.integration;


@JEIPlugin
public class JeiPlugin extends BlankModPlugin {
	@Override
	public void register(IModRegistry registry) {
		IIngredientBlacklist ingredientBlacklist = registry.getJeiHelpers().getIngredientBlacklist();
// Path: src/main/java/oreregistry/OreRegistry.java
// @Mod(modid = Constants.MOD_ID, name = Constants.NAME, version = Constants.VERSION, acceptedMinecraftVersions = "[1.11]")
// public class OreRegistry {
// 
// 	@Nullable
// 	@Mod.Instance(Constants.MOD_ID)
// 	public static OreRegistry instance;
// 
// 	public static final ResourceRegistry registry;
// 	public static final ResourceInfo helper;
// 	public static final List<ItemStack> unusedItems = new ArrayList<>();
// 	@Nullable
// 	public static File configFile;
// 
// 	static {
// 		OreRegistryApi.registry = registry = new ResourceRegistry();
// 		OreRegistryApi.info = helper = new ResourceInfo();
// 	}
// 
// 	@Mod.EventHandler
// 	public void preInit(FMLPreInitializationEvent event) {
// 		registerVanilla(OreRegistryApi.registry);
// 		MinecraftForge.EVENT_BUS.register(new EventHandler());
// 		new PacketHandler();
// 		configFile = event.getSuggestedConfigurationFile();
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(FMLInitializationEvent event) {
// 		Config.load(event.getSide());
// 	}
// 
// 	private void registerVanilla(IResourceRegistry resourceRegistry) {
// 		final IResource iron = resourceRegistry.registerResource(ResourceTypes.IRON);
// 		iron.registerProduct(INGOT, new ItemStack(Items.IRON_INGOT));
// 		iron.registerProduct(NUGGET, new ItemStack(Items.field_191525_da));
// 		iron.registerProduct(BLOCK, new ItemStack(Blocks.IRON_BLOCK));
// 		iron.registerProduct(ORE, new ItemStack(Blocks.IRON_ORE));
// 
// 		final IResource gold = resourceRegistry.registerResource(ResourceTypes.GOLD);
// 		gold.registerProduct(INGOT, new ItemStack(Items.GOLD_INGOT));
// 		gold.registerProduct(NUGGET, new ItemStack(Items.GOLD_NUGGET));
// 		gold.registerProduct(BLOCK, new ItemStack(Blocks.GOLD_BLOCK));
// 		gold.registerProduct(ORE, new ItemStack(Blocks.GOLD_ORE));
// 
// 		final IResource emerald = resourceRegistry.registerResource(ResourceTypes.EMERALD);
// 		emerald.registerProduct(GEM, new ItemStack(Items.EMERALD));
// 		emerald.registerProduct(BLOCK, new ItemStack(Blocks.EMERALD_BLOCK));
// 		emerald.registerProduct(ORE, new ItemStack(Blocks.EMERALD_ORE));
// 
// 		final IResource diamond = resourceRegistry.registerResource(ResourceTypes.DIAMOND);
// 		diamond.registerProduct(GEM, new ItemStack(Items.DIAMOND));
// 		diamond.registerProduct(BLOCK, new ItemStack(Blocks.DIAMOND_BLOCK));
// 		diamond.registerProduct(ORE, new ItemStack(Blocks.DIAMOND_ORE));
// 
// 		final IResource lapis = resourceRegistry.registerResource(ResourceTypes.LAPIS);
// 		lapis.registerProduct(GEM, new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()));
// 		lapis.registerProduct(BLOCK, new ItemStack(Blocks.LAPIS_BLOCK));
// 		lapis.registerProduct(ORE, new ItemStack(Blocks.LAPIS_ORE));
// 
// 		final IResource redstone = resourceRegistry.registerResource(ResourceTypes.REDSTONE);
// 		redstone.registerProduct(DUST, new ItemStack(Items.REDSTONE));
// 		redstone.registerProduct(BLOCK, new ItemStack(Blocks.REDSTONE_BLOCK));
// 		redstone.registerProduct(ORE, new ItemStack(Blocks.REDSTONE_ORE));
// 
// 		final IResource quartz = resourceRegistry.registerResource(ResourceTypes.QUARTZ);
// 		quartz.registerProduct(GEM, new ItemStack(Items.QUARTZ));
// 		quartz.registerProduct(BLOCK, new ItemStack(Blocks.QUARTZ_BLOCK));
// 		quartz.registerProduct(ORE, new ItemStack(Blocks.QUARTZ_ORE));
// 
// 		final IResource coal = resourceRegistry.registerResource(ResourceTypes.COAL);
// 		coal.registerProduct(GEM, new ItemStack(Items.COAL));
// 		coal.registerProduct(BLOCK, new ItemStack(Blocks.COAL_BLOCK));
// 		coal.registerProduct(ORE, new ItemStack(Blocks.COAL_ORE));
// 	}
// 
// 	public File getConfigFile(){
// 		return configFile;
// 	}
// }


// Path: src/main/java/oreregistry/integration/JeiPlugin.java
import mezz.jei.api.BlankModPlugin;
import mezz.jei.api.IModRegistry;
import mezz.jei.api.JEIPlugin;
import mezz.jei.api.ingredients.IIngredientBlacklist;
import net.minecraft.item.ItemStack;
import oreregistry.OreRegistry;

/*
 * Copyright (c) 2017 Nedelosk, Mezz
 *
 * This work (the MOD) is licensed under the "MIT" License, see LICENSE for details.
 */
package oreregistry.integration;


@JEIPlugin
public class JeiPlugin extends BlankModPlugin {
	@Override
	public void register(IModRegistry registry) {
		IIngredientBlacklist ingredientBlacklist = registry.getJeiHelpers().getIngredientBlacklist();
		for (ItemStack itemStack : OreRegistry.unusedItems) {