Search in sources :

Example 1 with IIngredientBlacklist

use of mezz.jei.api.ingredients.IIngredientBlacklist in project ForestryMC by ForestryMC.

the class ForestryJeiPlugin method register.

@Override
public void register(IModRegistry registry) {
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    IIngredientBlacklist ingredientBlacklist = jeiHelpers.getIngredientBlacklist();
    List<ItemStack> hiddenItems = ModuleManager.getInternalHandler().getHiddenItems();
    for (ItemStack hiddenItem : hiddenItems) {
        ingredientBlacklist.addIngredientToBlacklist(hiddenItem);
    }
    ItemRegistryCore items = ModuleCore.getItems();
    JeiUtil.addDescription(registry, items.solderingIron, items.circuitboards, items.tubes, items.pipette, items.kitPickaxe, items.kitShovel, items.fertilizerCompound);
    BlockRegistryCore blocks = ModuleCore.getBlocks();
    JeiUtil.addDescription(registry, blocks.analyzer, blocks.bogEarth, blocks.escritoire, blocks.humus);
}
Also used : IIngredientBlacklist(mezz.jei.api.ingredients.IIngredientBlacklist) BlockRegistryCore(forestry.core.blocks.BlockRegistryCore) ItemRegistryCore(forestry.core.items.ItemRegistryCore) ItemStack(net.minecraft.item.ItemStack) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Aggregations

BlockRegistryCore (forestry.core.blocks.BlockRegistryCore)1 ItemRegistryCore (forestry.core.items.ItemRegistryCore)1 IJeiHelpers (mezz.jei.api.IJeiHelpers)1 IIngredientBlacklist (mezz.jei.api.ingredients.IIngredientBlacklist)1 ItemStack (net.minecraft.item.ItemStack)1