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;
|
2018-11-11 13:26:19 +01:00
|
|
|
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
|
2018-11-21 01:05:50 +01:00
|
|
|
import de.ellpeck.naturesaura.api.recipes.AltarRecipe;
|
2018-12-31 17:32:38 +01:00
|
|
|
import de.ellpeck.naturesaura.api.recipes.AnimalSpawnerRecipe;
|
2018-11-21 01:05:50 +01:00
|
|
|
import de.ellpeck.naturesaura.api.recipes.OfferingRecipe;
|
|
|
|
import de.ellpeck.naturesaura.api.recipes.TreeRitualRecipe;
|
2018-10-16 21:10:38 +02:00
|
|
|
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;
|
2018-12-31 17:32:38 +01:00
|
|
|
import de.ellpeck.naturesaura.compat.jei.animal.AnimalSpawnerCategory;
|
|
|
|
import de.ellpeck.naturesaura.compat.jei.animal.AnimalSpawnerWrapper;
|
2018-11-21 01:05:50 +01:00
|
|
|
import de.ellpeck.naturesaura.compat.jei.offering.OfferingCategory;
|
|
|
|
import de.ellpeck.naturesaura.compat.jei.offering.OfferingWrapper;
|
2018-10-22 00:14:52 +02:00
|
|
|
import de.ellpeck.naturesaura.compat.jei.treeritual.TreeRitualCategory;
|
|
|
|
import de.ellpeck.naturesaura.compat.jei.treeritual.TreeRitualWrapper;
|
2018-10-16 21:10:38 +02:00
|
|
|
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-11-21 01:05:50 +01:00
|
|
|
public static final String OFFERING = NaturesAura.MOD_ID + ".offering";
|
2018-12-31 17:32:38 +01:00
|
|
|
public static final String SPAWNER = NaturesAura.MOD_ID + ".animal_spawner";
|
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),
|
2018-11-21 01:05:50 +01:00
|
|
|
new AltarCategory(helper),
|
2018-12-31 17:32:38 +01:00
|
|
|
new OfferingCategory(helper),
|
|
|
|
new AnimalSpawnerCategory(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-11-21 01:05:50 +01:00
|
|
|
registry.handleRecipes(OfferingRecipe.class, OfferingWrapper::new, OFFERING);
|
2018-12-31 17:32:38 +01:00
|
|
|
registry.handleRecipes(AnimalSpawnerRecipe.class, AnimalSpawnerWrapper::new, SPAWNER);
|
2018-10-16 21:10:38 +02:00
|
|
|
|
2018-11-11 13:26:19 +01:00
|
|
|
registry.addRecipes(NaturesAuraAPI.TREE_RITUAL_RECIPES.values(), TREE_RITUAL);
|
|
|
|
registry.addRecipes(NaturesAuraAPI.ALTAR_RECIPES.values(), ALTAR);
|
2018-11-21 01:05:50 +01:00
|
|
|
registry.addRecipes(NaturesAuraAPI.OFFERING_RECIPES.values(), OFFERING);
|
2018-12-31 17:32:38 +01:00
|
|
|
registry.addRecipes(NaturesAuraAPI.ANIMAL_SPAWNER_RECIPES.values(), SPAWNER);
|
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-11-21 01:05:50 +01:00
|
|
|
registry.addRecipeCatalyst(new ItemStack(ModBlocks.OFFERING_TABLE), OFFERING);
|
2018-12-31 17:32:38 +01:00
|
|
|
registry.addRecipeCatalyst(new ItemStack(ModBlocks.ANIMAL_SPAWNER), SPAWNER);
|
2018-10-16 21:10:38 +02:00
|
|
|
}
|
|
|
|
}
|