Search in sources :

Example 1 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project BetterWithAddons by DaedalusGame.

the class BWAJEIPlugin method register.

@Override
public void register(@Nonnull IModRegistry reg) {
    IJeiHelpers helper = reg.getJeiHelpers();
    IGuiHelper guiHelper = helper.getGuiHelper();
    reg.addRecipeCategories(new TataraRecipeCategory(guiHelper), new FireNetRecipeCategory(guiHelper), new WaterNetRecipeCategory(guiHelper), new SandNetRecipeCategory(guiHelper), new SoakingBoxRecipeCategory(guiHelper), new DryingBoxRecipeCategory(guiHelper), new SpindleRecipeCategory(guiHelper), new CrateRecipeCategory(guiHelper), new PackingRecipeCategory(guiHelper), new InfuserRecipeCategory(guiHelper), new TransmutationRecipeCategory(guiHelper));
    reg.handleRecipes(SpindleRecipe.class, SpindleRecipeWrapper::new, SpindleRecipeCategory.UID);
    reg.handleRecipes(NetRecipe.class, NetRecipeWrapper::new, SandNetRecipeCategory.UID);
    reg.handleRecipes(NetRecipe.class, NetRecipeWrapper::new, WaterNetRecipeCategory.UID);
    reg.handleRecipes(NetRecipe.class, NetRecipeWrapper::new, FireNetRecipeCategory.UID);
    reg.handleRecipes(CherryBoxRecipe.class, CherryBoxRecipeWrapper::new, SoakingBoxRecipeCategory.UID);
    reg.handleRecipes(CherryBoxRecipe.class, CherryBoxRecipeWrapper::new, DryingBoxRecipeCategory.UID);
    reg.handleRecipes(SmeltingRecipe.class, SmeltingRecipeWrapper::new, TataraRecipeCategory.UID);
    reg.handleRecipes(TransmutationRecipe.class, TransmutationRecipeWrapper::new, TransmutationRecipeCategory.UID);
    reg.handleRecipes(PackingRecipe.class, PackingRecipeWrapper::new, PackingRecipeCategory.UID);
    reg.handleRecipes(InfuserRecipe.class, recipe -> new InfuserRecipeWrapper(getCraftingRecipeWrapper(helper, recipe.internal), recipe.getRecipeRequiredSpirit()), InfuserRecipeCategory.UID);
    reg.addRecipes(CraftingManagerSpindle.getInstance().getRecipes(), SpindleRecipeCategory.UID);
    reg.addRecipes(CraftingManagerSandNet.getInstance().getRecipes(), SandNetRecipeCategory.UID);
    reg.addRecipes(CraftingManagerWaterNet.getInstance().getRecipes(), WaterNetRecipeCategory.UID);
    reg.addRecipes(CraftingManagerFireNet.getInstance().getRecipes(), FireNetRecipeCategory.UID);
    reg.addRecipes(CraftingManagerDryingBox.instance().getRecipes(), DryingBoxRecipeCategory.UID);
    reg.addRecipes(CraftingManagerSoakingBox.instance().getRecipes(), SoakingBoxRecipeCategory.UID);
    reg.addRecipes(CraftingManagerTatara.instance().getRecipes(), TataraRecipeCategory.UID);
    reg.addRecipes(CraftingManagerInfuser.getInstance().getRecipeList(), InfuserRecipeCategory.UID);
    reg.addRecipes(CraftingManagerInfuserTransmutation.getInstance().getRecipes(), TransmutationRecipeCategory.UID);
    reg.addRecipes(CraftingManagerPacking.getInstance().getRecipes(), PackingRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.tatara), TataraRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.cherrybox, 1, 0), SoakingBoxRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.cherrybox, 1, 1), DryingBoxRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.nettedScreen), WaterNetRecipeCategory.UID, SandNetRecipeCategory.UID, FireNetRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.spindle), SpindleRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.box), CrateRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(Blocks.PISTON), PackingRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.infuser), InfuserRecipeCategory.UID);
    reg.addRecipeCatalyst(new ItemStack(ModBlocks.infuser), TransmutationRecipeCategory.UID);
    reg.addRecipeClickArea(GuiTatara.class, 78, 32, 28, 23, TataraRecipeCategory.UID);
    reg.addRecipeClickArea(GuiSoakingBox.class, 78, 32, 28, 23, SoakingBoxRecipeCategory.UID);
    reg.addRecipeClickArea(GuiDryingBox.class, 78, 32, 28, 23, DryingBoxRecipeCategory.UID);
    reg.addRecipeClickArea(GuiInfuser.class, 94, 35, 19, 16, InfuserRecipeCategory.UID);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) IJeiHelpers(mezz.jei.api.IJeiHelpers) ItemStack(net.minecraft.item.ItemStack)

Example 2 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project pnc-repressurized by TeamPneumatic.

the class JEI method register.

@Override
public void register(IModRegistry registry) {
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    registry.addRecipes(BasicThermopneumaticProcessingPlantRecipe.recipes, ModCategoryUid.THERMO_PNEUMATIC);
    registry.addRecipes(PressureChamberRecipe.chamberRecipes, ModCategoryUid.PRESSURE_CHAMBER);
    registry.addRecipes(new JEIPlasticMixerCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.PLASTIC_MIXER);
    registry.addRecipes(new JEIRefineryCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.REFINERY);
    registry.addRecipes(new JEIEtchingAcidCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.ETCHING_ACID);
    registry.addRecipes(new JEICompressedIronCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.COMPRESSED_IRON_EXPLOSION);
    registry.addRecipes(new JEIUVLightBoxCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.UV_LIGHT_BOX);
    registry.addRecipes(AssemblyRecipe.drillRecipes, ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipes(AssemblyRecipe.laserRecipes, ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipes(AssemblyRecipe.drillLaserRecipes, ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipes(new JEIAmadronTradeCategory(jeiHelpers).getAllRecipes(), ModCategoryUid.AMADRON_TRADE);
    registry.handleRecipes(PressureChamberRecipe.class, JEIPressureChamberRecipeCategory.ChamberRecipeWrapper::new, ModCategoryUid.PRESSURE_CHAMBER);
    registry.handleRecipes(BasicThermopneumaticProcessingPlantRecipe.class, JEIThermopneumaticProcessingPlantCategory.ThermopneumaticRecipeWrapper::new, ModCategoryUid.THERMO_PNEUMATIC);
    registry.handleRecipes(AssemblyRecipe.class, JEIAssemblyControllerCategory.AssemblyRecipeWrapper::new, ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipeClickArea(GuiAssemblyController.class, 68, 75, 24, 17, ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipeClickArea(GuiPressureChamber.class, 100, 7, 40, 40, ModCategoryUid.PRESSURE_CHAMBER);
    registry.addRecipeClickArea(GuiRefinery.class, 47, 21, 27, 47, ModCategoryUid.REFINERY);
    registry.addRecipeClickArea(GuiThermopneumaticProcessingPlant.class, 30, 31, 48, 20, ModCategoryUid.THERMO_PNEUMATIC);
    registry.addRecipeCatalyst(new ItemStack(Itemss.AMADRON_TABLET), ModCategoryUid.AMADRON_TRADE);
    registry.addRecipeCatalyst(new ItemStack(Blockss.ASSEMBLY_CONTROLLER), ModCategoryUid.ASSEMBLY_CONTROLLER);
    registry.addRecipeCatalyst(FluidUtil.getFilledBucket(new FluidStack(Fluids.ETCHING_ACID, 1000)), ModCategoryUid.ETCHING_ACID);
    registry.addRecipeCatalyst(new ItemStack(Blockss.PLASTIC_MIXER), ModCategoryUid.PLASTIC_MIXER);
    registry.addRecipeCatalyst(new ItemStack(Blockss.PRESSURE_CHAMBER_WALL), ModCategoryUid.PRESSURE_CHAMBER);
    registry.addRecipeCatalyst(new ItemStack(Blockss.REFINERY), ModCategoryUid.REFINERY);
    registry.addRecipeCatalyst(new ItemStack(Blockss.THERMOPNEUMATIC_PROCESSING_PLANT), ModCategoryUid.THERMO_PNEUMATIC);
    registry.addRecipeCatalyst(new ItemStack(Blockss.UV_LIGHT_BOX), ModCategoryUid.UV_LIGHT_BOX);
    registry.addAdvancedGuiHandlers(new GuiTabHandler());
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) IJeiHelpers(mezz.jei.api.IJeiHelpers) ItemStack(net.minecraft.item.ItemStack)

Example 3 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project pnc-repressurized by TeamPneumatic.

the class JEI method registerCategories.

@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    IJeiHelpers helpers = registry.getJeiHelpers();
    registry.addRecipeCategories(new JEIPressureChamberRecipeCategory(helpers), new JEIAssemblyControllerCategory(helpers), new JEIThermopneumaticProcessingPlantCategory(helpers), new JEIRefineryCategory(helpers), new JEIEtchingAcidCategory(helpers), new JEICompressedIronCategory(helpers), new JEIUVLightBoxCategory(helpers), new JEIAmadronTradeCategory(helpers), new JEIPlasticMixerCategory(helpers));
}
Also used : IJeiHelpers(mezz.jei.api.IJeiHelpers)

Example 4 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project DefiledLands by Lykrast.

the class DefiledLandsJEI method registerCategories.

@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    final IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    final IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    registry.addRecipeCategories(new DefilementCategory(guiHelper));
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Example 5 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project Adventurers-Toolbox by the-realest-stu.

the class ToolboxJEIPlugin method register.

@Override
public void register(IModRegistry reg) {
    IJeiHelpers helper = reg.getJeiHelpers();
    IGuiHelper guiHelper = helper.getGuiHelper();
    reg.handleRecipes(BookRecipe.class, new IRecipeWrapperFactory<BookRecipe>() {

        @Override
        public IRecipeWrapper getRecipeWrapper(BookRecipe recipe) {
            return new GuideBookRecipeWrapper();
        }
    }, VanillaRecipeCategoryUid.CRAFTING);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) BookRecipe(toolbox.common.recipes.BookRecipe) IRecipeWrapper(mezz.jei.api.recipe.IRecipeWrapper) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Aggregations

IJeiHelpers (mezz.jei.api.IJeiHelpers)8 IGuiHelper (mezz.jei.api.IGuiHelper)4 ItemStack (net.minecraft.item.ItemStack)3 MultiFenceRecipeRegistryPlugin (binnie.extratrees.integration.jei.multifence.MultiFenceRecipeRegistryPlugin)1 BlockRegistryCore (forestry.core.blocks.BlockRegistryCore)1 ItemRegistryCore (forestry.core.items.ItemRegistryCore)1 IIngredientBlacklist (mezz.jei.api.ingredients.IIngredientBlacklist)1 IRecipeWrapper (mezz.jei.api.recipe.IRecipeWrapper)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 BookRecipe (toolbox.common.recipes.BookRecipe)1