mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
added click areas to JEI for easy recipe access
This commit is contained in:
parent
d593a05cca
commit
d2721e0979
1 changed files with 10 additions and 0 deletions
|
@ -12,6 +12,9 @@ package de.ellpeck.actuallyadditions.mod.jei;
|
||||||
|
|
||||||
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
||||||
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.inventory.gui.GuiCoffeeMachine;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.inventory.gui.GuiFurnaceDouble;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.inventory.gui.GuiGrinder;
|
||||||
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
||||||
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeCategory;
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeCategory;
|
||||||
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeHandler;
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeHandler;
|
||||||
|
@ -21,8 +24,10 @@ import de.ellpeck.actuallyadditions.mod.jei.crusher.CrusherRecipeCategory;
|
||||||
import de.ellpeck.actuallyadditions.mod.jei.crusher.CrusherRecipeHandler;
|
import de.ellpeck.actuallyadditions.mod.jei.crusher.CrusherRecipeHandler;
|
||||||
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeCategory;
|
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeCategory;
|
||||||
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeHandler;
|
import de.ellpeck.actuallyadditions.mod.jei.reconstructor.ReconstructorRecipeHandler;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.nei.NEICoffeeMachineRecipe;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.Util;
|
import de.ellpeck.actuallyadditions.mod.util.Util;
|
||||||
import mezz.jei.api.*;
|
import mezz.jei.api.*;
|
||||||
|
import mezz.jei.api.recipe.VanillaRecipeCategoryUid;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
@JEIPlugin
|
@JEIPlugin
|
||||||
|
@ -61,6 +66,11 @@ public class JEIActuallyAdditionsPlugin implements IModPlugin{
|
||||||
registry.addRecipes(ActuallyAdditionsAPI.crusherRecipes);
|
registry.addRecipes(ActuallyAdditionsAPI.crusherRecipes);
|
||||||
registry.addRecipes(ActuallyAdditionsAPI.reconstructorLensNoneRecipes);
|
registry.addRecipes(ActuallyAdditionsAPI.reconstructorLensNoneRecipes);
|
||||||
|
|
||||||
|
registry.addRecipeClickArea(GuiCoffeeMachine.class, 53, 42, 22, 16, NEICoffeeMachineRecipe.NAME);
|
||||||
|
registry.addRecipeClickArea(GuiGrinder.class, 80, 40, 24, 22, CrusherRecipeCategory.NAME);
|
||||||
|
registry.addRecipeClickArea(GuiGrinder.GuiGrinderDouble.class, 51, 40, 74, 22, CrusherRecipeCategory.NAME);
|
||||||
|
registry.addRecipeClickArea(GuiFurnaceDouble.class, 51, 40, 74, 22, VanillaRecipeCategoryUid.SMELTING);
|
||||||
|
|
||||||
INbtIgnoreList ignoreList = this.helpers.getNbtIgnoreList();
|
INbtIgnoreList ignoreList = this.helpers.getNbtIgnoreList();
|
||||||
ignoreList.ignoreNbtTagNames(InitItems.itemDrill, "Energy");
|
ignoreList.ignoreNbtTagNames(InitItems.itemDrill, "Energy");
|
||||||
ignoreList.ignoreNbtTagNames(InitItems.itemTeleStaff, "Energy");
|
ignoreList.ignoreNbtTagNames(InitItems.itemTeleStaff, "Energy");
|
||||||
|
|
Loading…
Reference in a new issue