Search in sources :

Example 1 with IStackHelper

use of mezz.jei.api.helpers.IStackHelper in project Mekanism by mekanism.

the class MekanismJEI method registerRecipeTransferHandlers.

@Override
public void registerRecipeTransferHandlers(IRecipeTransferRegistration registry) {
    IRecipeTransferHandlerHelper transferHelper = registry.getTransferHelper();
    IStackHelper stackHelper = registry.getJeiHelpers().getStackHelper();
    registry.addRecipeTransferHandler(CraftingRobitContainer.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);
    registry.addRecipeTransferHandler(new FormulaicRecipeTransferInfo());
    registry.addRecipeTransferHandler(new QIOCraftingTransferHandler<>(transferHelper, stackHelper, QIODashboardContainer.class), VanillaRecipeCategoryUid.CRAFTING);
    registry.addRecipeTransferHandler(new QIOCraftingTransferHandler<>(transferHelper, stackHelper, PortableQIODashboardContainer.class), VanillaRecipeCategoryUid.CRAFTING);
}
Also used : PortableQIODashboardContainer(mekanism.common.inventory.container.item.PortableQIODashboardContainer) IRecipeTransferHandlerHelper(mezz.jei.api.recipe.transfer.IRecipeTransferHandlerHelper) IStackHelper(mezz.jei.api.helpers.IStackHelper) PortableQIODashboardContainer(mekanism.common.inventory.container.item.PortableQIODashboardContainer) QIODashboardContainer(mekanism.common.inventory.container.tile.QIODashboardContainer)

Example 2 with IStackHelper

use of mezz.jei.api.helpers.IStackHelper in project SophisticatedBackpacks by P3pp3rF1y.

the class SBPPlugin method registerRecipeTransferHandlers.

@Override
public void registerRecipeTransferHandlers(IRecipeTransferRegistration registration) {
    IRecipeTransferHandlerHelper handlerHelper = registration.getTransferHelper();
    IStackHelper stackHelper = registration.getJeiHelpers().getStackHelper();
    registration.addRecipeTransferHandler(new CraftingContainerRecipeTransferHandler(handlerHelper, stackHelper), VanillaRecipeCategoryUid.CRAFTING);
}
Also used : IRecipeTransferHandlerHelper(mezz.jei.api.recipe.transfer.IRecipeTransferHandlerHelper) IStackHelper(mezz.jei.api.helpers.IStackHelper)

Aggregations

IStackHelper (mezz.jei.api.helpers.IStackHelper)2 IRecipeTransferHandlerHelper (mezz.jei.api.recipe.transfer.IRecipeTransferHandlerHelper)2 PortableQIODashboardContainer (mekanism.common.inventory.container.item.PortableQIODashboardContainer)1 QIODashboardContainer (mekanism.common.inventory.container.tile.QIODashboardContainer)1