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;
}
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));
}
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));
}
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);
}
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));
}
Aggregations