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