Search in sources :

Example 1 with IModRegistry

use of mezz.jei.api.IModRegistry in project Wizardry by TeamWizardry.

the class WizardryJEIPlugin method register.

@Override
public void register(IModRegistry registry) {
    registry.addRecipes(FireRecipes.RECIPES.entrySet().stream().map(FireRecipeJEI::new).collect(Collectors.toList()), fireCategory.getUid());
    registry.addRecipes(ManaRecipes.RECIPE_REGISTRY.values().stream().filter(recipe -> !recipe.getOutput().isEmpty() || recipe.getFluidOutput() != null).map(FluidRecipeJEI::new).collect(Collectors.toList()), manaCategory.getUid());
    registry.addRecipeCatalyst(new ItemStack(Items.FIRE_CHARGE), fireCategory.getUid());
    registry.addRecipeCatalyst(new ItemStack(ModItems.ORB), manaCategory.getUid());
}
Also used : JEIPlugin(mezz.jei.api.JEIPlugin) IModRegistry(mezz.jei.api.IModRegistry) Items(net.minecraft.init.Items) FireRecipeJEI(com.teamwizardry.wizardry.client.jei.fire.FireRecipeJEI) ManaRecipes(com.teamwizardry.wizardry.crafting.mana.ManaRecipes) FluidRecipeJEI(com.teamwizardry.wizardry.client.jei.fluid.FluidRecipeJEI) IRecipeCategoryRegistration(mezz.jei.api.recipe.IRecipeCategoryRegistration) Collectors(java.util.stream.Collectors) IModPlugin(mezz.jei.api.IModPlugin) ItemStack(net.minecraft.item.ItemStack) FireCraftingCategory(com.teamwizardry.wizardry.client.jei.fire.FireCraftingCategory) Side(net.minecraftforge.fml.relauncher.Side) IJeiHelpers(mezz.jei.api.IJeiHelpers) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) FluidCraftingCategory(com.teamwizardry.wizardry.client.jei.fluid.FluidCraftingCategory) ModItems(com.teamwizardry.wizardry.init.ModItems) FireRecipes(com.teamwizardry.wizardry.crafting.burnable.FireRecipes) FireRecipeJEI(com.teamwizardry.wizardry.client.jei.fire.FireRecipeJEI) ItemStack(net.minecraft.item.ItemStack) FluidRecipeJEI(com.teamwizardry.wizardry.client.jei.fluid.FluidRecipeJEI)

Aggregations

FireCraftingCategory (com.teamwizardry.wizardry.client.jei.fire.FireCraftingCategory)1 FireRecipeJEI (com.teamwizardry.wizardry.client.jei.fire.FireRecipeJEI)1 FluidCraftingCategory (com.teamwizardry.wizardry.client.jei.fluid.FluidCraftingCategory)1 FluidRecipeJEI (com.teamwizardry.wizardry.client.jei.fluid.FluidRecipeJEI)1 FireRecipes (com.teamwizardry.wizardry.crafting.burnable.FireRecipes)1 ManaRecipes (com.teamwizardry.wizardry.crafting.mana.ManaRecipes)1 ModItems (com.teamwizardry.wizardry.init.ModItems)1 Collectors (java.util.stream.Collectors)1 IJeiHelpers (mezz.jei.api.IJeiHelpers)1 IModPlugin (mezz.jei.api.IModPlugin)1 IModRegistry (mezz.jei.api.IModRegistry)1 JEIPlugin (mezz.jei.api.JEIPlugin)1 IRecipeCategoryRegistration (mezz.jei.api.recipe.IRecipeCategoryRegistration)1 Items (net.minecraft.init.Items)1 ItemStack (net.minecraft.item.ItemStack)1 Side (net.minecraftforge.fml.relauncher.Side)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1