2016-01-16 20:06:25 +01:00
|
|
|
/*
|
|
|
|
* This file ("JEIActuallyAdditionsPlugin.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense/
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
|
|
|
* © 2016 Ellpeck
|
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.mod.jei;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
2016-01-22 18:52:38 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
2016-01-18 23:38:52 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
2016-01-16 20:06:25 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeHandler;
|
2016-01-17 12:17:24 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.coffee.CoffeeMachineRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.coffee.CoffeeMachineRecipeHandler;
|
2016-01-17 15:09:59 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.crusher.CrusherRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.crusher.CrusherRecipeHandler;
|
2016-01-17 22:57:32 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeHandler;
|
2016-01-22 18:52:38 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.Util;
|
2016-01-16 20:06:25 +01:00
|
|
|
import mezz.jei.api.*;
|
2016-01-22 18:52:38 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2016-01-16 20:06:25 +01:00
|
|
|
|
|
|
|
@JEIPlugin
|
|
|
|
public class JEIActuallyAdditionsPlugin implements IModPlugin{
|
|
|
|
|
|
|
|
private IJeiHelpers helpers;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onJeiHelpersAvailable(IJeiHelpers jeiHelpers){
|
|
|
|
this.helpers = jeiHelpers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onItemRegistryAvailable(IItemRegistry itemRegistry){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void register(IModRegistry registry){
|
|
|
|
registry.addRecipeCategories(
|
2016-01-17 12:17:24 +01:00
|
|
|
new BookletRecipeCategory(this.helpers.getGuiHelper()),
|
2016-01-17 15:09:59 +01:00
|
|
|
new CoffeeMachineRecipeCategory(this.helpers.getGuiHelper()),
|
2016-01-17 22:57:32 +01:00
|
|
|
new CrusherRecipeCategory(this.helpers.getGuiHelper()),
|
|
|
|
new ReconstructorRecipeCategory(this.helpers.getGuiHelper())
|
2016-01-16 20:06:25 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
registry.addRecipeHandlers(
|
2016-01-17 12:17:24 +01:00
|
|
|
new BookletRecipeHandler(),
|
2016-01-17 15:09:59 +01:00
|
|
|
new CoffeeMachineRecipeHandler(),
|
2016-01-17 22:57:32 +01:00
|
|
|
new CrusherRecipeHandler(),
|
|
|
|
new ReconstructorRecipeHandler()
|
2016-01-16 20:06:25 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.bookletPagesWithItemStackData);
|
2016-01-17 12:17:24 +01:00
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.coffeeMachineIngredients);
|
2016-01-17 15:09:59 +01:00
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.crusherRecipes);
|
2016-01-17 22:57:32 +01:00
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.reconstructorLensNoneRecipes);
|
2016-01-18 23:38:52 +01:00
|
|
|
|
|
|
|
INbtIgnoreList ignoreList = this.helpers.getNbtIgnoreList();
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemDrill, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemTeleStaff, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemGrowthRing, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemMagnetRing, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemWaterRemovalRing, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemBattery, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemBatteryDouble, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemBatteryTriple, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemBatteryQuadruple, "Energy");
|
|
|
|
ignoreList.ignoreNbtTagNames(InitItems.itemBatteryQuintuple, "Energy");
|
2016-01-22 18:52:38 +01:00
|
|
|
|
|
|
|
IItemBlacklist blacklist = this.helpers.getItemBlacklist();
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockRice));
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockCanola));
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockFlax));
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockCoffee));
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockWildPlant, 1, Util.WILDCARD));
|
|
|
|
blacklist.addItemToBlacklist(new ItemStack(InitBlocks.blockColoredLampOn, 1, Util.WILDCARD));
|
2016-01-16 20:06:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onRecipeRegistryAvailable(IRecipeRegistry recipeRegistry){
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|