Search in sources :

Example 1 with ICrateRegistry

use of forestry.api.storage.ICrateRegistry in project ForestryMC by ForestryMC.

the class ModuleApiculture method registerCrates.

@Override
public void registerCrates() {
    ItemRegistryCore coreItems = ModuleCore.getItems();
    ItemRegistryApiculture items = getItems();
    ICrateRegistry crateRegistry = StorageManager.crateRegistry;
    crateRegistry.registerCrate(coreItems.beeswax.getItemStack());
    crateRegistry.registerCrate(items.pollenCluster.get(EnumPollenCluster.NORMAL, 1));
    crateRegistry.registerCrate(items.pollenCluster.get(EnumPollenCluster.CRYSTALLINE, 1));
    crateRegistry.registerCrate(items.propolis.getItemStack());
    crateRegistry.registerCrate(items.honeydew.getItemStack());
    crateRegistry.registerCrate(items.royalJelly.getItemStack());
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.HONEY, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.COCOA, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.SIMMERING, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.STRINGY, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.FROZEN, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.DRIPPING, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.SILKY, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.PARCHED, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.MYSTERIOUS, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.POWDERY, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.WHEATEN, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.MOSSY, 1));
    crateRegistry.registerCrate(items.beeComb.get(EnumHoneyComb.MELLOW, 1));
    crateRegistry.registerCrate(coreItems.refractoryWax.getItemStack());
}
Also used : ItemRegistryCore(forestry.core.items.ItemRegistryCore) ItemRegistryApiculture(forestry.apiculture.items.ItemRegistryApiculture) ICrateRegistry(forestry.api.storage.ICrateRegistry)

Example 2 with ICrateRegistry

use of forestry.api.storage.ICrateRegistry in project ForestryMC by ForestryMC.

the class ModuleArboriculture method registerCrates.

@Override
public void registerCrates() {
    ICrateRegistry crateRegistry = StorageManager.crateRegistry;
    crateRegistry.registerCrate(EnumFruit.CHERRY.getStack());
    crateRegistry.registerCrate(EnumFruit.WALNUT.getStack());
    crateRegistry.registerCrate(EnumFruit.CHESTNUT.getStack());
    crateRegistry.registerCrate(EnumFruit.LEMON.getStack());
    crateRegistry.registerCrate(EnumFruit.PLUM.getStack());
    crateRegistry.registerCrate(EnumFruit.PAPAYA.getStack());
    crateRegistry.registerCrate(EnumFruit.DATES.getStack());
}
Also used : ICrateRegistry(forestry.api.storage.ICrateRegistry)

Example 3 with ICrateRegistry

use of forestry.api.storage.ICrateRegistry in project ForestryMC by ForestryMC.

the class ModuleCore method registerCrates.

@Override
public void registerCrates() {
    ICrateRegistry crateRegistry = StorageManager.crateRegistry;
    // forestry items
    ItemRegistryCore items = getItems();
    crateRegistry.registerCrate(items.peat);
    crateRegistry.registerCrate(items.apatite);
    crateRegistry.registerCrate(items.fertilizerCompound);
    crateRegistry.registerCrate(items.mulch);
    crateRegistry.registerCrate(items.phosphor);
    crateRegistry.registerCrate(items.ash);
    crateRegistry.registerCrate(OreDictUtil.INGOT_TIN);
    crateRegistry.registerCrate(OreDictUtil.INGOT_COPPER);
    crateRegistry.registerCrate(OreDictUtil.INGOT_BRONZE);
    // forestry blocks
    BlockRegistryCore blocks = getBlocks();
    crateRegistry.registerCrate(blocks.humus);
    crateRegistry.registerCrate(blocks.bogEarth.get(BlockBogEarth.SoilType.BOG_EARTH, 1));
    // vanilla items
    crateRegistry.registerCrate(OreDictUtil.CROP_WHEAT);
    crateRegistry.registerCrate(Items.COOKIE);
    crateRegistry.registerCrate(OreDictUtil.DUST_REDSTONE);
    crateRegistry.registerCrate(new ItemStack(Items.DYE, 1, 4));
    crateRegistry.registerCrate("sugarcane");
    crateRegistry.registerCrate(Items.CLAY_BALL);
    crateRegistry.registerCrate("dustGlowstone");
    crateRegistry.registerCrate(Items.APPLE);
    crateRegistry.registerCrate(new ItemStack(Items.NETHER_WART));
    crateRegistry.registerCrate(new ItemStack(Items.COAL, 1, 1));
    crateRegistry.registerCrate(new ItemStack(Items.COAL, 1, 0));
    crateRegistry.registerCrate(Items.WHEAT_SEEDS);
    crateRegistry.registerCrate("cropPotato");
    crateRegistry.registerCrate("cropCarrot");
    // vanilla blocks
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG, 1, 0));
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG, 1, 1));
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG, 1, 2));
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG, 1, 3));
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG2, 1, 0));
    crateRegistry.registerCrate(new ItemStack(Blocks.LOG2, 1, 1));
    crateRegistry.registerCrate("cobblestone");
    crateRegistry.registerCrate("dirt");
    crateRegistry.registerCrate(new ItemStack(Blocks.DIRT, 1, 2));
    crateRegistry.registerCrate("stone");
    crateRegistry.registerCrate("stoneGranite");
    crateRegistry.registerCrate("stoneDiorite");
    crateRegistry.registerCrate("stoneAndesite");
    crateRegistry.registerCrate("blockPrismarine");
    crateRegistry.registerCrate("blockPrismarineBrick");
    crateRegistry.registerCrate("blockPrismarineDark");
    crateRegistry.registerCrate(Blocks.BRICK_BLOCK);
    crateRegistry.registerCrate("blockCactus");
    crateRegistry.registerCrate(new ItemStack(Blocks.SAND, 1, 0));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAND, 1, 1));
    crateRegistry.registerCrate("obsidian");
    crateRegistry.registerCrate("netherrack");
    crateRegistry.registerCrate(Blocks.SOUL_SAND);
    crateRegistry.registerCrate(Blocks.SANDSTONE);
    crateRegistry.registerCrate(Blocks.NETHER_BRICK);
    crateRegistry.registerCrate(Blocks.MYCELIUM);
    crateRegistry.registerCrate("gravel");
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 0));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 1));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 2));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 3));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 4));
    crateRegistry.registerCrate(new ItemStack(Blocks.SAPLING, 1, 5));
}
Also used : BlockRegistryCore(forestry.core.blocks.BlockRegistryCore) ItemRegistryCore(forestry.core.items.ItemRegistryCore) ItemStack(net.minecraft.item.ItemStack) ICrateRegistry(forestry.api.storage.ICrateRegistry)

Example 4 with ICrateRegistry

use of forestry.api.storage.ICrateRegistry in project ForestryMC by ForestryMC.

the class PluginIC2 method registerCrates.

@Override
public void registerCrates() {
    ICrateRegistry crateRegistry = StorageManager.crateRegistry;
    if (crateRegistry == null) {
        return;
    }
    if (resin != null) {
        crateRegistry.registerCrate(resin);
    }
    if (rubber != null) {
        crateRegistry.registerCrate(rubber);
    }
    ItemStack scrap = IC2Items.getItem("crafting", "scrap");
    if (scrap != null) {
        crateRegistry.registerCrate(scrap);
    }
    ItemStack uuMatter = IC2Items.getItem("misc_resource", "matter");
    if (uuMatter != null) {
        crateRegistry.registerCrate(uuMatter);
    }
    ItemStack silver = IC2Items.getItem("ingot", "silver");
    if (silver != null) {
        crateRegistry.registerCrate(silver);
    }
    ItemStack brass = IC2Items.getItem("ingot", "bronze");
    if (brass != null) {
        crateRegistry.registerCrate(brass);
    }
}
Also used : ItemStack(net.minecraft.item.ItemStack) ICrateRegistry(forestry.api.storage.ICrateRegistry)

Example 5 with ICrateRegistry

use of forestry.api.storage.ICrateRegistry in project ForestryMC by ForestryMC.

the class PluginNatura method registerCrates.

@SuppressWarnings("unchecked")
@Override
public void registerCrates() {
    ICrateRegistry crateRegistry = StorageManager.crateRegistry;
    Iterables.concat(edibles, logs, saplings, shrooms, materials, seeds, berries, fruits, crops).forEach(crateRegistry::registerCrate);
}
Also used : ICrateRegistry(forestry.api.storage.ICrateRegistry)

Aggregations

ICrateRegistry (forestry.api.storage.ICrateRegistry)5 ItemRegistryCore (forestry.core.items.ItemRegistryCore)2 ItemStack (net.minecraft.item.ItemStack)2 ItemRegistryApiculture (forestry.apiculture.items.ItemRegistryApiculture)1 BlockRegistryCore (forestry.core.blocks.BlockRegistryCore)1