Search in sources :

Example 6 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project Pearcel-Mod by MiningMark48.

the class GeneratorFuelRecipeMaker method getFuelRecipes.

public static List<GeneratorFuelRecipe> getFuelRecipes(IJeiHelpers helpers) {
    IGuiHelper guiHelper = helpers.getGuiHelper();
    IStackHelper stackHelper = helpers.getStackHelper();
    List<ItemStack> fuelStacks = GeneratorRegistry.getFuels();
    List<GeneratorFuelRecipe> fuelRecipes = new ArrayList<GeneratorFuelRecipe>(fuelStacks.size());
    for (ItemStack fuelStack : fuelStacks) {
        if (fuelStack == null) {
            continue;
        }
        List<ItemStack> fuels = stackHelper.getSubtypes(fuelStack);
        if (fuels.isEmpty()) {
            continue;
        }
        int cooldownTime = getBurnTime(fuels.get(0));
        int rfPerTick = getRFPerTick(fuels.get(0));
        fuelRecipes.add(new GeneratorFuelRecipe(guiHelper, fuels, cooldownTime, rfPerTick));
    }
    return fuelRecipes;
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) ArrayList(java.util.ArrayList) IStackHelper(mezz.jei.api.recipe.IStackHelper) ItemStack(net.minecraft.item.ItemStack)

Example 7 with IGuiHelper

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

use of mezz.jei.api.IGuiHelper in project BaseMetals by MinecraftModDevelopmentMods.

the class BaseMetalsJEIPlugin method registerCategories.

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

Example 9 with IGuiHelper

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

Example 10 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project EnderIO by SleepyTrousers.

the class JeiPlugin method registerCategories.

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

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