Search in sources :

Example 1 with IngredientCraftTweaker

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

the class DryingBox method add.

@ZenMethod
public static void add(IItemStack output, IItemStack input) {
    CherryBoxRecipe recipe = new CherryBoxRecipe(BlockCherryBox.CherryBoxType.DRYING, 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 2 with IngredientCraftTweaker

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

the class FireNet method add.

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

Example 3 with IngredientCraftTweaker

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

the class WaterNet method add.

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

Example 4 with IngredientCraftTweaker

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

the class Packing method add.

@ZenMethod
public static void add(IItemStack output, IIngredient input) {
    ItemStack stack = CraftTweakerMC.getItemStack(output);
    if (stack.getItem() instanceof ItemBlock) {
        Block block = ((ItemBlock) stack.getItem()).getBlock();
        PackingRecipe r = new PackingRecipe(new IngredientCraftTweaker(input), block.getStateFromMeta(stack.getMetadata()));
        r.setJeiOutput(stack);
        CraftTweaker.LATE_ACTIONS.add(new Add(r));
    }
}
Also used : PackingRecipe(betterwithaddons.crafting.recipes.PackingRecipe) Block(net.minecraft.block.Block) ItemBlock(net.minecraft.item.ItemBlock) IngredientCraftTweaker(betterwithaddons.util.IngredientCraftTweaker) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ItemBlock(net.minecraft.item.ItemBlock) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 5 with IngredientCraftTweaker

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

the class SandNet method add.

@ZenMethod
public static void add(IItemStack[] outputs, @NotNull IIngredient input, int sand) {
    NetRecipe r = new NetRecipe(BlockNettedScreen.SifterType.SAND, new IngredientCraftTweaker(input), sand, CraftTweakerMC.getItemStacks(outputs));
    CraftTweaker.LATE_ACTIONS.add(new Add(r));
}
Also used : NetRecipe(betterwithaddons.crafting.recipes.NetRecipe) 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