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