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);
}
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);
}
Aggregations