Search in sources :

Example 1 with ItemRegistryBackpacks

use of forestry.storage.items.ItemRegistryBackpacks in project ForestryMC by ForestryMC.

the class ModuleBackpacks method registerRecipes.

@Override
public void registerRecipes() {
    ItemRegistryBackpacks items = getItems();
    if (items.apiaristBackpack != null && ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.APICULTURE))) {
        BlockRegistryApiculture beeBlocks = ModuleApiculture.getBlocks();
        addBackpackRecipe("bee", items.apiaristBackpack, "stickWood", beeBlocks.beeChest);
    }
    if (items.lepidopteristBackpack != null && ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.LEPIDOPTEROLOGY))) {
        BlockRegistryLepidopterology butterflyBlocks = ModuleLepidopterology.getBlocks();
        ItemStack chest = new ItemStack(butterflyBlocks.butterflyChest);
        addBackpackRecipe("butterfly", items.lepidopteristBackpack, "stickWood", chest);
    }
    addBackpackRecipe("mining", items.minerBackpack, "ingotIron");
    addBackpackRecipe("digging", items.diggerBackpack, "stone");
    addBackpackRecipe("foresting", items.foresterBackpack, "logWood");
    addBackpackRecipe("hunting", items.hunterBackpack, Items.FEATHER);
    addBackpackRecipe("adventuring", items.adventurerBackpack, Items.BONE);
    addBackpackRecipe("building", items.builderBackpack, Items.CLAY_BALL);
    // / CARPENTER
    if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.FACTORY))) {
        // / BACKPACKS WOVEN
        addT2BackpackRecipe(items.minerBackpack, items.minerBackpackT2);
        addT2BackpackRecipe(items.diggerBackpack, items.diggerBackpackT2);
        addT2BackpackRecipe(items.foresterBackpack, items.foresterBackpackT2);
        addT2BackpackRecipe(items.hunterBackpack, items.hunterBackpackT2);
        addT2BackpackRecipe(items.adventurerBackpack, items.adventurerBackpackT2);
        addT2BackpackRecipe(items.builderBackpack, items.builderBackpackT2);
    }
}
Also used : BlockRegistryApiculture(forestry.apiculture.blocks.BlockRegistryApiculture) BlockRegistryLepidopterology(forestry.lepidopterology.blocks.BlockRegistryLepidopterology) ItemRegistryBackpacks(forestry.storage.items.ItemRegistryBackpacks) ResourceLocation(net.minecraft.util.ResourceLocation) ItemStack(net.minecraft.item.ItemStack)

Example 2 with ItemRegistryBackpacks

use of forestry.storage.items.ItemRegistryBackpacks in project ForestryMC by ForestryMC.

the class StorageJeiPlugin method register.

@Override
public void register(IModRegistry registry) {
    if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.BACKPACKS))) {
        return;
    }
    ItemRegistryBackpacks items = ModuleBackpacks.getItems();
    JeiUtil.addDescription(registry, "minerBag", items.minerBackpack, items.minerBackpackT2);
    JeiUtil.addDescription(registry, "diggerBag", items.diggerBackpack, items.diggerBackpackT2);
    JeiUtil.addDescription(registry, "foresterBag", items.foresterBackpack, items.foresterBackpackT2);
    JeiUtil.addDescription(registry, "hunter", items.hunterBackpack, items.hunterBackpackT2);
    JeiUtil.addDescription(registry, "adventurerBag", items.adventurerBackpack, items.adventurerBackpackT2);
    JeiUtil.addDescription(registry, "builderBag", items.builderBackpack, items.builderBackpackT2);
    JeiUtil.addDescription(registry, items.apiaristBackpack, items.lepidopteristBackpack);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) ItemRegistryBackpacks(forestry.storage.items.ItemRegistryBackpacks)

Aggregations

ItemRegistryBackpacks (forestry.storage.items.ItemRegistryBackpacks)2 ResourceLocation (net.minecraft.util.ResourceLocation)2 BlockRegistryApiculture (forestry.apiculture.blocks.BlockRegistryApiculture)1 BlockRegistryLepidopterology (forestry.lepidopterology.blocks.BlockRegistryLepidopterology)1 ItemStack (net.minecraft.item.ItemStack)1