Search in sources :

Example 1 with StokedCauldronRecipe

use of betterwithmods.common.registry.bulk.recipes.StokedCauldronRecipe in project BetterWithAddons by DaedalusGame.

the class InteractionBWM method addCauldronExplosion.

public void addCauldronExplosion() {
    ItemStack explosion = new ItemStack(ModItems.explosion);
    StokedCauldronRecipe cauldronRecipe = new StokedCauldronRecipe(explosion, ItemStack.EMPTY, new Object[] { "listAllExplosives" }) {

        @Override
        public NonNullList<ItemStack> onCraft(World world, TileEntity tile, ItemStackHandler inv) {
            return explodeCauldron(world, tile, inv);
        }
    };
    StokedCrucibleRecipe crucibleRecipe = new StokedCrucibleRecipe(explosion, ItemStack.EMPTY, new Object[] { "listAllExplosives" }) {

        @Override
        public NonNullList<ItemStack> onCraft(World world, TileEntity tile, ItemStackHandler inv) {
            return explodeCauldron(world, tile, inv);
        }
    };
    cauldronRecipe.setPriority(100);
    crucibleRecipe.setPriority(100);
    StokedCauldronManager.getInstance().addRecipe(cauldronRecipe);
    StokedCrucibleManager.getInstance().addRecipe(crucibleRecipe);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) ItemStackHandler(net.minecraftforge.items.ItemStackHandler) World(net.minecraft.world.World) StokedCauldronRecipe(betterwithmods.common.registry.bulk.recipes.StokedCauldronRecipe) StokedCrucibleRecipe(betterwithmods.common.registry.bulk.recipes.StokedCrucibleRecipe)

Example 2 with StokedCauldronRecipe

use of betterwithmods.common.registry.bulk.recipes.StokedCauldronRecipe in project BetterWithAddons by DaedalusGame.

the class InteractionBWR method addDiamondRecovery.

private void addDiamondRecovery(Object input, int output) {
    ItemStack ironReturn = ItemStack.EMPTY;
    if (ModuleLoader.isFeatureEnabled(HCDiamond.class))
        ironReturn = new ItemStack(Items.IRON_INGOT, output);
    StokedCauldronRecipe diamondRecipe = new StokedCauldronRecipe(new ItemStack(Items.DIAMOND, output), ironReturn, new Object[] { input, new OreStack("ingotConcentratedHellfire", output), new OreStack("dustPotash", output * 8) });
    diamondRecipe.setPriority(110);
    StokedCauldronManager.getInstance().addRecipe(diamondRecipe);
}
Also used : OreStack(betterwithmods.common.registry.OreStack) ItemStack(net.minecraft.item.ItemStack) StokedCauldronRecipe(betterwithmods.common.registry.bulk.recipes.StokedCauldronRecipe)

Aggregations

StokedCauldronRecipe (betterwithmods.common.registry.bulk.recipes.StokedCauldronRecipe)2 OreStack (betterwithmods.common.registry.OreStack)1 StokedCrucibleRecipe (betterwithmods.common.registry.bulk.recipes.StokedCrucibleRecipe)1 ItemStack (net.minecraft.item.ItemStack)1 TileEntity (net.minecraft.tileentity.TileEntity)1 World (net.minecraft.world.World)1 ItemStackHandler (net.minecraftforge.items.ItemStackHandler)1