Search in sources :

Example 6 with IngredientCraftTweaker

use of betterwithaddons.util.IngredientCraftTweaker in project BetterWithAddons by DaedalusGame.

the class SoakingBox method add.

@ZenMethod
public static void add(IItemStack output, IItemStack input) {
    CherryBoxRecipe recipe = new CherryBoxRecipe(BlockCherryBox.CherryBoxType.SOAKING, new IngredientCraftTweaker(input), CraftTweakerMC.getItemStack(output));
    CraftTweaker.LATE_ACTIONS.add(new Add(recipe));
}
Also used : CherryBoxRecipe(betterwithaddons.crafting.recipes.CherryBoxRecipe) IngredientCraftTweaker(betterwithaddons.util.IngredientCraftTweaker) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 7 with IngredientCraftTweaker

use of betterwithaddons.util.IngredientCraftTweaker in project BetterWithAddons by DaedalusGame.

the class Spindle method add.

@ZenMethod
public static void add(IItemStack[] outputs, @NotNull IIngredient input, boolean consumesSpindle) {
    SpindleRecipe r = new SpindleRecipe(consumesSpindle, new IngredientCraftTweaker(input), CraftTweakerMC.getItemStacks(outputs));
    CraftTweaker.LATE_ACTIONS.add(new Add(r));
}
Also used : SpindleRecipe(betterwithaddons.crafting.recipes.SpindleRecipe) IngredientCraftTweaker(betterwithaddons.util.IngredientCraftTweaker) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 8 with IngredientCraftTweaker

use of betterwithaddons.util.IngredientCraftTweaker in project BetterWithAddons by DaedalusGame.

the class Tatara method add.

@ZenMethod
public static void add(IItemStack output, IItemStack input) {
    SmeltingRecipe recipe = new SmeltingRecipe(new IngredientCraftTweaker(input), CraftTweakerMC.getItemStack(output));
    CraftTweaker.LATE_ACTIONS.add(new Add(recipe));
}
Also used : SmeltingRecipe(betterwithaddons.crafting.recipes.SmeltingRecipe) IngredientCraftTweaker(betterwithaddons.util.IngredientCraftTweaker) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

IngredientCraftTweaker (betterwithaddons.util.IngredientCraftTweaker)8 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)8 NetRecipe (betterwithaddons.crafting.recipes.NetRecipe)3 CherryBoxRecipe (betterwithaddons.crafting.recipes.CherryBoxRecipe)2 PackingRecipe (betterwithaddons.crafting.recipes.PackingRecipe)1 SmeltingRecipe (betterwithaddons.crafting.recipes.SmeltingRecipe)1 SpindleRecipe (betterwithaddons.crafting.recipes.SpindleRecipe)1 IItemStack (crafttweaker.api.item.IItemStack)1 Block (net.minecraft.block.Block)1 ItemBlock (net.minecraft.item.ItemBlock)1 ItemStack (net.minecraft.item.ItemStack)1