Search in sources :

Example 1 with IGuiHelper

use of mezz.jei.api.IGuiHelper 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 IGuiHelper

use of mezz.jei.api.IGuiHelper in project SilentGems by SilentChaos512.

the class SilentGemsPlugin method register.

@Override
public void register(IModRegistry reg) {
    jeiHelper = reg.getJeiHelpers();
    IGuiHelper guiHelper = jeiHelper.getGuiHelper();
    doItemBlacklist(jeiHelper.getIngredientBlacklist());
    doRecipeRegistration(reg, guiHelper);
    doAddDescriptions(reg);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper)

Example 3 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project ForestryMC by ForestryMC.

the class FactoryJeiPlugin method registerCategories.

@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.FACTORY))) {
        return;
    }
    jeiHelpers = registry.getJeiHelpers();
    IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    registry.addRecipeCategories(new BottlerRecipeCategory(guiHelper), new CarpenterRecipeCategory(guiHelper), new CentrifugeRecipeCategory(guiHelper), new FabricatorRecipeCategory(guiHelper), new FermenterRecipeCategory(guiHelper), new MoistenerRecipeCategory(guiHelper), new RainmakerRecipeCategory(guiHelper), new SqueezerRecipeCategory(guiHelper), new StillRecipeCategory(guiHelper));
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) SqueezerRecipeCategory(forestry.factory.recipes.jei.squeezer.SqueezerRecipeCategory) CarpenterRecipeCategory(forestry.factory.recipes.jei.carpenter.CarpenterRecipeCategory) ResourceLocation(net.minecraft.util.ResourceLocation) BottlerRecipeCategory(forestry.factory.recipes.jei.bottler.BottlerRecipeCategory) RainmakerRecipeCategory(forestry.factory.recipes.jei.rainmaker.RainmakerRecipeCategory) CentrifugeRecipeCategory(forestry.factory.recipes.jei.centrifuge.CentrifugeRecipeCategory) MoistenerRecipeCategory(forestry.factory.recipes.jei.moistener.MoistenerRecipeCategory) FabricatorRecipeCategory(forestry.factory.recipes.jei.fabricator.FabricatorRecipeCategory) StillRecipeCategory(forestry.factory.recipes.jei.still.StillRecipeCategory) FermenterRecipeCategory(forestry.factory.recipes.jei.fermenter.FermenterRecipeCategory)

Example 4 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project Galacticraft by micdoodle8.

the class GalacticraftMarsJEI method register.

@Override
public void register(@Nonnull IModRegistry registry) {
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    registry.addRecipeCategories(new Tier2RocketRecipeCategory(guiHelper), new GasLiquefierRecipeCategory(guiHelper), new CargoRocketRecipeCategory(guiHelper), new MethaneSynthesizerRecipeCategory(guiHelper));
    registry.addRecipeHandlers(new Tier2RocketRecipeHandler(), new GasLiquefierRecipeHandler(), new CargoRocketRecipeHandler(), new MethaneSynthesizerRecipeHandler());
    registry.addRecipes(Tier2RocketRecipeMaker.getRecipesList());
    registry.addRecipes(GasLiquefierRecipeMaker.getRecipesList());
    registry.addRecipes(CargoRocketRecipeMaker.getRecipesList());
    registry.addRecipes(MethaneSynthesizerRecipeMaker.getRecipesList());
}
Also used : Tier2RocketRecipeCategory(micdoodle8.mods.galacticraft.planets.mars.client.jei.tier2rocket.Tier2RocketRecipeCategory) MethaneSynthesizerRecipeHandler(micdoodle8.mods.galacticraft.planets.mars.client.jei.methanesynthesizer.MethaneSynthesizerRecipeHandler) GasLiquefierRecipeCategory(micdoodle8.mods.galacticraft.planets.mars.client.jei.gasliquefier.GasLiquefierRecipeCategory) IGuiHelper(mezz.jei.api.IGuiHelper) CargoRocketRecipeHandler(micdoodle8.mods.galacticraft.planets.mars.client.jei.cargorocket.CargoRocketRecipeHandler) GasLiquefierRecipeHandler(micdoodle8.mods.galacticraft.planets.mars.client.jei.gasliquefier.GasLiquefierRecipeHandler) Tier2RocketRecipeHandler(micdoodle8.mods.galacticraft.planets.mars.client.jei.tier2rocket.Tier2RocketRecipeHandler) MethaneSynthesizerRecipeCategory(micdoodle8.mods.galacticraft.planets.mars.client.jei.methanesynthesizer.MethaneSynthesizerRecipeCategory) CargoRocketRecipeCategory(micdoodle8.mods.galacticraft.planets.mars.client.jei.cargorocket.CargoRocketRecipeCategory)

Example 5 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project Galacticraft by micdoodle8.

the class GalacticraftAsteroidsJEI method register.

@Override
public void register(@Nonnull IModRegistry registry) {
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    registry.addRecipeCategories(new Tier3RocketRecipeCategory(guiHelper), new AstroMinerRecipeCategory(guiHelper));
    registry.addRecipeHandlers(new Tier3RocketRecipeHandler(), new AstroMinerRecipeHandler());
    registry.addRecipes(Tier3RocketRecipeMaker.getRecipesList());
    registry.addRecipes(AstroMinerRecipeMaker.getRecipesList());
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) AstroMinerRecipeCategory(micdoodle8.mods.galacticraft.planets.asteroids.client.jei.astrominer.AstroMinerRecipeCategory) Tier3RocketRecipeCategory(micdoodle8.mods.galacticraft.planets.asteroids.client.jei.tier3rocket.Tier3RocketRecipeCategory) Tier3RocketRecipeHandler(micdoodle8.mods.galacticraft.planets.asteroids.client.jei.tier3rocket.Tier3RocketRecipeHandler) AstroMinerRecipeHandler(micdoodle8.mods.galacticraft.planets.asteroids.client.jei.astrominer.AstroMinerRecipeHandler)

Aggregations

IGuiHelper (mezz.jei.api.IGuiHelper)13 IJeiHelpers (mezz.jei.api.IJeiHelpers)4 ItemStack (net.minecraft.item.ItemStack)3 ArrayList (java.util.ArrayList)2 IRecipeWrapper (mezz.jei.api.recipe.IRecipeWrapper)2 ResourceLocation (net.minecraft.util.ResourceLocation)2 BottlerRecipeCategory (forestry.factory.recipes.jei.bottler.BottlerRecipeCategory)1 CarpenterRecipeCategory (forestry.factory.recipes.jei.carpenter.CarpenterRecipeCategory)1 CentrifugeRecipeCategory (forestry.factory.recipes.jei.centrifuge.CentrifugeRecipeCategory)1 FabricatorRecipeCategory (forestry.factory.recipes.jei.fabricator.FabricatorRecipeCategory)1 FermenterRecipeCategory (forestry.factory.recipes.jei.fermenter.FermenterRecipeCategory)1 MoistenerRecipeCategory (forestry.factory.recipes.jei.moistener.MoistenerRecipeCategory)1 RainmakerRecipeCategory (forestry.factory.recipes.jei.rainmaker.RainmakerRecipeCategory)1 SqueezerRecipeCategory (forestry.factory.recipes.jei.squeezer.SqueezerRecipeCategory)1 StillRecipeCategory (forestry.factory.recipes.jei.still.StillRecipeCategory)1 ImbuingRecipeWrapper (lumien.randomthings.handler.compability.jei.imbuing.ImbuingRecipeWrapper)1 AnvilRecipe (lumien.randomthings.recipes.anvil.AnvilRecipe)1 IStackHelper (mezz.jei.api.recipe.IStackHelper)1 IRecipeTransferRegistry (mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)1 AstroMinerRecipeCategory (micdoodle8.mods.galacticraft.planets.asteroids.client.jei.astrominer.AstroMinerRecipeCategory)1