Search in sources :

Example 11 with IGuiHelper

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

the class MachinesPlugin method register.

@Override
public void register(@Nonnull IModRegistry registry) {
    super.register(registry);
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    AlloyRecipeCategory.register(registry, guiHelper);
    CombustionRecipeCategory.register(registry, guiHelper);
    EnchanterRecipeCategory.register(registry, guiHelper);
    PainterRecipeCategory.register(registry, registry.getJeiHelpers());
    SagMillRecipeCategory.register(registry, guiHelper);
    SliceAndSpliceRecipeCategory.register(registry, guiHelper);
    SolarPanelRecipeCategory.register(registry, guiHelper);
    SoulBinderRecipeCategory.register(registry, guiHelper);
    StirlingRecipeCategory.register(registry, guiHelper);
    TankRecipeCategory.register(registry, guiHelper);
    VatRecipeCategory.register(registry, guiHelper);
    WiredChargerRecipeCategory.register(registry, guiHelper);
    WeatherObeliskRecipeCategory.register(registry, guiHelper);
    ZombieGeneratorRecipeCategory.register(registry, guiHelper);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper)

Example 12 with IGuiHelper

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

the class CharcoalJeiPlugin method registerCategories.

@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.CHARCOAL))) {
        return;
    }
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) ResourceLocation(net.minecraft.util.ResourceLocation)

Example 13 with IGuiHelper

use of mezz.jei.api.IGuiHelper in project Random-Things by lumien231.

the class RandomThingsPlugin method register.

@Override
public void register(IModRegistry registry) {
    this.jeiHelpers = registry.getJeiHelpers();
    RandomThingsPlugin.stackHelper = jeiHelpers.getStackHelper();
    IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    registry.handleRecipes(ImbuingRecipe.class, (recipe) -> (new ImbuingRecipeWrapper(recipe.getIngredients(), recipe.toImbue(), recipe.getResult())), IMBUE_ID);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.imbuingStation), IMBUE_ID);
    IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
    recipeTransferRegistry.addRecipeTransferHandler(ContainerImbuingStation.class, IMBUE_ID, 0, 4, 5, 36);
    registry.addRecipes(lumien.randomthings.recipes.imbuing.ImbuingRecipeHandler.imbuingRecipes, IMBUE_ID);
    List<IRecipeWrapper> anvilRecipes = new ArrayList<IRecipeWrapper>();
    for (AnvilRecipe ar : lumien.randomthings.recipes.anvil.AnvilRecipeHandler.getAllRecipes()) {
        anvilRecipes.add(jeiHelpers.getVanillaRecipeFactory().createAnvilRecipe(ar.getFirst(), Lists.newArrayList(ar.getSecond()), Lists.newArrayList(ar.getOutput())));
    }
    registry.addRecipes(anvilRecipes, VanillaRecipeCategoryUid.ANVIL);
    registry.addRecipeClickArea(GuiImbuingStation.class, 99, 54, 22, 16, IMBUE_ID);
    DescriptionHandler.addDescriptions(registry);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) ImbuingRecipeWrapper(lumien.randomthings.handler.compability.jei.imbuing.ImbuingRecipeWrapper) ArrayList(java.util.ArrayList) AnvilRecipe(lumien.randomthings.recipes.anvil.AnvilRecipe) IRecipeWrapper(mezz.jei.api.recipe.IRecipeWrapper) ItemStack(net.minecraft.item.ItemStack) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

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