First attempt at AlchemyArrayCrafting JEI support

Does not work currently due to broken map lookups.
This commit is contained in:
Nick 2015-12-26 16:50:22 -08:00
parent 03847ad6d9
commit d9bc1105d8
8 changed files with 201 additions and 4 deletions

View file

@ -1,5 +1,8 @@
package WayofTime.bloodmagic.compat.jei;
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingCategory;
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingRecipeHandler;
import WayofTime.bloodmagic.compat.jei.alchemyArray.AlchemyArrayCraftingRecipeMaker;
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeCategory;
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeHandler;
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeMaker;
@ -13,6 +16,8 @@ import net.minecraft.item.ItemStack;
@JEIPlugin
public class BloodMagicPlugin implements IModPlugin {
public static IJeiHelpers jeiHelper;
@Override
public boolean isModLoaded() {
return true;
@ -22,20 +27,25 @@ public class BloodMagicPlugin implements IModPlugin {
public void register(IModRegistry registry) {
registry.addRecipeCategories(
new AltarRecipeCategory(),
new BindingRecipeCategory()
new BindingRecipeCategory(),
new AlchemyArrayCraftingCategory()
);
registry.addRecipeHandlers(
new AltarRecipeHandler(),
new BindingRecipeHandler()
new BindingRecipeHandler(),
new AlchemyArrayCraftingRecipeHandler()
);
registry.addRecipes(AltarRecipeMaker.getRecipes());
registry.addRecipes(BindingRecipeMaker.getRecipes());
registry.addRecipes(AlchemyArrayCraftingRecipeMaker.getRecipes());
}
@Override
public void onJeiHelpersAvailable(IJeiHelpers jeiHelpers) {
jeiHelper = jeiHelpers;
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.bloodLight));
}