NaturesAura/src/main/java/de/ellpeck/naturesaura/compat/jei/JEINaturesAuraPlugin.java

47 lines
1.9 KiB
Java
Raw Normal View History

2018-10-22 00:14:52 +02:00
package de.ellpeck.naturesaura.compat.jei;
2018-10-16 21:10:38 +02:00
import de.ellpeck.naturesaura.NaturesAura;
import de.ellpeck.naturesaura.blocks.ModBlocks;
2018-10-22 00:14:52 +02:00
import de.ellpeck.naturesaura.compat.jei.altar.AltarCategory;
import de.ellpeck.naturesaura.compat.jei.altar.AltarWrapper;
import de.ellpeck.naturesaura.compat.jei.treeritual.TreeRitualCategory;
import de.ellpeck.naturesaura.compat.jei.treeritual.TreeRitualWrapper;
2018-10-18 18:00:21 +02:00
import de.ellpeck.naturesaura.recipes.AltarRecipe;
2018-10-16 21:10:38 +02:00
import de.ellpeck.naturesaura.recipes.TreeRitualRecipe;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.IModPlugin;
import mezz.jei.api.IModRegistry;
import mezz.jei.api.JEIPlugin;
import mezz.jei.api.recipe.IRecipeCategoryRegistration;
import net.minecraft.item.ItemStack;
@JEIPlugin
public class JEINaturesAuraPlugin implements IModPlugin {
public static final String TREE_RITUAL = NaturesAura.MOD_ID + ".tree_ritual";
2018-10-18 18:00:21 +02:00
public static final String ALTAR = NaturesAura.MOD_ID + ".altar";
2018-10-16 21:10:38 +02:00
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
IGuiHelper helper = registry.getJeiHelpers().getGuiHelper();
registry.addRecipeCategories(
2018-10-18 18:00:21 +02:00
new TreeRitualCategory(helper),
new AltarCategory(helper)
2018-10-16 21:10:38 +02:00
);
}
@Override
public void register(IModRegistry registry) {
registry.handleRecipes(TreeRitualRecipe.class, TreeRitualWrapper::new, TREE_RITUAL);
2018-10-18 18:00:21 +02:00
registry.handleRecipes(AltarRecipe.class, AltarWrapper::new, ALTAR);
2018-10-16 21:10:38 +02:00
2018-10-22 00:14:52 +02:00
registry.addRecipes(TreeRitualRecipe.RECIPES.values(), TREE_RITUAL);
registry.addRecipes(AltarRecipe.RECIPES.values(), ALTAR);
2018-10-16 21:10:38 +02:00
registry.addRecipeCatalyst(new ItemStack(ModBlocks.GOLD_POWDER), TREE_RITUAL);
registry.addRecipeCatalyst(new ItemStack(ModBlocks.WOOD_STAND), TREE_RITUAL);
2018-10-18 18:00:21 +02:00
registry.addRecipeCatalyst(new ItemStack(ModBlocks.NATURE_ALTAR), ALTAR);
2018-10-31 01:17:58 +01:00
registry.addRecipeCatalyst(new ItemStack(ModBlocks.CONVERSION_CATALYST), ALTAR);
2018-10-16 21:10:38 +02:00
}
}