2015-04-26 20:07:57 +02:00
|
|
|
package ellpeck.actuallyadditions.nei;
|
|
|
|
|
|
|
|
import codechicken.nei.api.API;
|
|
|
|
import codechicken.nei.api.IConfigureNEI;
|
2015-05-30 17:47:57 +02:00
|
|
|
import codechicken.nei.recipe.DefaultOverlayHandler;
|
2015-04-26 20:07:57 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
2015-06-12 19:12:06 +02:00
|
|
|
import ellpeck.actuallyadditions.inventory.gui.GuiCrafter;
|
2015-04-26 20:07:57 +02:00
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class NEIActuallyAdditionsConfig implements IConfigureNEI{
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void loadConfig(){
|
|
|
|
Util.logInfo("Initializing Not Enough Items Plugin...");
|
|
|
|
|
2015-05-30 17:47:57 +02:00
|
|
|
API.registerGuiOverlay(GuiCrafter.class, "crafting");
|
|
|
|
API.registerGuiOverlayHandler(GuiCrafter.class, new DefaultOverlayHandler(), "crafting");
|
|
|
|
|
2015-04-26 20:07:57 +02:00
|
|
|
CrusherRecipeHandler crusherRecipeHandler = new CrusherRecipeHandler();
|
|
|
|
API.registerRecipeHandler(crusherRecipeHandler);
|
|
|
|
API.registerUsageHandler(crusherRecipeHandler);
|
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
HairyBallRecipeHandler ballRecipeHandler = new HairyBallRecipeHandler();
|
|
|
|
API.registerRecipeHandler(ballRecipeHandler);
|
|
|
|
API.registerUsageHandler(ballRecipeHandler);
|
|
|
|
|
|
|
|
CompostRecipeHandler compostRecipeHandler = new CompostRecipeHandler();
|
|
|
|
API.registerRecipeHandler(compostRecipeHandler);
|
|
|
|
API.registerUsageHandler(compostRecipeHandler);
|
|
|
|
|
2015-06-12 19:12:06 +02:00
|
|
|
CoffeeMachineRecipeHandler coffeeMachineRecipeHandler = new CoffeeMachineRecipeHandler();
|
|
|
|
API.registerRecipeHandler(coffeeMachineRecipeHandler);
|
|
|
|
API.registerUsageHandler(coffeeMachineRecipeHandler);
|
|
|
|
|
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(){
|
|
|
|
return ModUtil.MOD_ID + " NEI Plugin";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getVersion(){
|
|
|
|
return ModUtil.VERSION;
|
|
|
|
}
|
|
|
|
}
|