2015-11-29 07:52:06 +00:00
|
|
|
package WayofTime.bloodmagic.compat.jei;
|
|
|
|
|
2015-12-27 00:50:22 +00:00
|
|
|
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingCategory;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingRecipeHandler;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingRecipeMaker;
|
2015-11-29 07:52:06 +00:00
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeCategory;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeHandler;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeMaker;
|
2015-12-03 03:27:28 +00:00
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeCategory;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeHandler;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeMaker;
|
2015-12-23 09:23:52 +00:00
|
|
|
import WayofTime.bloodmagic.registry.ModBlocks;
|
2015-12-27 01:08:58 +00:00
|
|
|
import WayofTime.bloodmagic.registry.ModItems;
|
2015-12-23 09:23:52 +00:00
|
|
|
import mezz.jei.api.*;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-11-29 07:52:06 +00:00
|
|
|
|
2015-12-04 01:12:50 +00:00
|
|
|
@JEIPlugin
|
2015-12-30 20:34:40 +00:00
|
|
|
public class BloodMagicPlugin implements IModPlugin
|
|
|
|
{
|
2015-11-29 07:52:06 +00:00
|
|
|
|
2015-12-27 00:50:22 +00:00
|
|
|
public static IJeiHelpers jeiHelper;
|
|
|
|
|
2015-11-29 07:52:06 +00:00
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public boolean isModLoaded()
|
|
|
|
{
|
2015-11-29 07:52:06 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public void register(IModRegistry registry)
|
|
|
|
{
|
2016-01-02 22:56:37 +00:00
|
|
|
registry.addRecipeCategories(new AltarRecipeCategory(), new BindingRecipeCategory(), new AlchemyArrayCraftingCategory());
|
2015-11-29 07:52:06 +00:00
|
|
|
|
2016-01-02 22:56:37 +00:00
|
|
|
registry.addRecipeHandlers(new AltarRecipeHandler(), new BindingRecipeHandler(), new AlchemyArrayCraftingRecipeHandler());
|
2015-11-29 07:52:06 +00:00
|
|
|
|
2015-12-14 07:07:22 +00:00
|
|
|
registry.addRecipes(AltarRecipeMaker.getRecipes());
|
|
|
|
registry.addRecipes(BindingRecipeMaker.getRecipes());
|
2015-12-27 00:50:22 +00:00
|
|
|
registry.addRecipes(AlchemyArrayCraftingRecipeMaker.getRecipes());
|
2015-12-27 01:08:58 +00:00
|
|
|
|
2015-12-30 05:30:48 +00:00
|
|
|
registry.addDescription(new ItemStack(ModItems.altarMaker), "jei.BloodMagic.desc.altarBuilder");
|
2015-11-29 07:52:06 +00:00
|
|
|
}
|
2015-12-23 09:23:52 +00:00
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public void onJeiHelpersAvailable(IJeiHelpers jeiHelpers)
|
|
|
|
{
|
2015-12-27 00:50:22 +00:00
|
|
|
jeiHelper = jeiHelpers;
|
|
|
|
|
2015-12-23 09:23:52 +00:00
|
|
|
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.bloodLight));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public void onItemRegistryAvailable(IItemRegistry itemRegistry)
|
|
|
|
{
|
2015-12-23 09:23:52 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public void onRecipeRegistryAvailable(IRecipeRegistry recipeRegistry)
|
|
|
|
{
|
2015-12-23 09:23:52 +00:00
|
|
|
|
|
|
|
}
|
2015-11-29 07:52:06 +00:00
|
|
|
}
|