2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("NEIActuallyAdditionsConfig.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
|
2016-01-03 16:05:51 +01:00
|
|
|
* http://ellpeck.de/actaddlicense/
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-01-03 16:05:51 +01:00
|
|
|
* © 2016 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-12-30 22:02:15 +01:00
|
|
|
package de.ellpeck.actuallyadditions.nei;
|
2015-04-26 20:07:57 +02:00
|
|
|
|
|
|
|
import codechicken.nei.api.API;
|
|
|
|
import codechicken.nei.api.IConfigureNEI;
|
2015-05-30 17:47:57 +02:00
|
|
|
import codechicken.nei.recipe.DefaultOverlayHandler;
|
2015-12-30 22:02:15 +01:00
|
|
|
import de.ellpeck.actuallyadditions.blocks.InitBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.inventory.gui.GuiCrafter;
|
|
|
|
import de.ellpeck.actuallyadditions.util.ModUtil;
|
|
|
|
import de.ellpeck.actuallyadditions.util.Util;
|
2015-04-26 20:07:57 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class NEIActuallyAdditionsConfig implements IConfigureNEI{
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void loadConfig(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("Initializing Not Enough Items Plugin...");
|
2015-04-26 20:07:57 +02:00
|
|
|
|
2015-05-30 17:47:57 +02:00
|
|
|
API.registerGuiOverlay(GuiCrafter.class, "crafting");
|
|
|
|
API.registerGuiOverlayHandler(GuiCrafter.class, new DefaultOverlayHandler(), "crafting");
|
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEICrusherRecipe crusherRecipe = new NEICrusherRecipe();
|
|
|
|
API.registerRecipeHandler(crusherRecipe);
|
|
|
|
API.registerUsageHandler(crusherRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEICrusherRecipe.Double crusherDoubleRecipe = new NEICrusherRecipe.Double();
|
|
|
|
API.registerRecipeHandler(crusherDoubleRecipe);
|
|
|
|
API.registerUsageHandler(crusherDoubleRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEIFurnaceDoubleRecipe furnaceDoubleRecipe = new NEIFurnaceDoubleRecipe();
|
|
|
|
API.registerRecipeHandler(furnaceDoubleRecipe);
|
|
|
|
API.registerUsageHandler(furnaceDoubleRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEIHairyBallRecipe ballRecipe = new NEIHairyBallRecipe();
|
|
|
|
API.registerRecipeHandler(ballRecipe);
|
|
|
|
API.registerUsageHandler(ballRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEITreasureChestRecipe treasureChestRecipe = new NEITreasureChestRecipe();
|
|
|
|
API.registerRecipeHandler(treasureChestRecipe);
|
|
|
|
API.registerUsageHandler(treasureChestRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEICompostRecipe compostRecipe = new NEICompostRecipe();
|
|
|
|
API.registerRecipeHandler(compostRecipe);
|
|
|
|
API.registerUsageHandler(compostRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEICoffeeMachineRecipe coffeeMachineRecipe = new NEICoffeeMachineRecipe();
|
|
|
|
API.registerRecipeHandler(coffeeMachineRecipe);
|
|
|
|
API.registerUsageHandler(coffeeMachineRecipe);
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEIReconstructorRecipe reconstructorRecipe = new NEIReconstructorRecipe();
|
|
|
|
API.registerRecipeHandler(reconstructorRecipe);
|
|
|
|
API.registerUsageHandler(reconstructorRecipe);
|
2015-11-15 18:05:58 +01:00
|
|
|
|
2015-11-27 15:22:44 +01:00
|
|
|
NEIBookletRecipe bookletRecipe = new NEIBookletRecipe();
|
|
|
|
API.registerRecipeHandler(bookletRecipe);
|
|
|
|
API.registerUsageHandler(bookletRecipe);
|
2015-10-04 15:24:11 +02:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockRice));
|
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockCanola));
|
2015-06-06 01:25:53 +02:00
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockFlax));
|
2015-06-12 19:12:06 +02:00
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockCoffee));
|
2015-06-28 03:12:32 +02:00
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockWildPlant, 1, Util.WILDCARD));
|
2015-06-28 21:28:58 +02:00
|
|
|
API.hideItem(new ItemStack(InitBlocks.blockColoredLampOn, 1, Util.WILDCARD));
|
2015-04-26 20:07:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName(){
|
2015-10-03 10:16:18 +02:00
|
|
|
return ModUtil.MOD_ID+" NEI Plugin";
|
2015-04-26 20:07:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getVersion(){
|
|
|
|
return ModUtil.VERSION;
|
|
|
|
}
|
2015-10-02 19:58:03 +02:00
|
|
|
|
2015-04-26 20:07:57 +02:00
|
|
|
}
|