Search in sources :

Example 6 with IItemStack

use of crafttweaker.api.item.IItemStack in project Minestuck by mraof.

the class Combinations method removeOreDictRecipe.

@ZenMethod
public static void removeOreDictRecipe(IItemStack input1, String input2, String mode) {
    ItemStack stack = (ItemStack) input1.getInternal();
    recipes.add(new SetRecipe(stack.getItem(), stack.getItemDamage(), input2, OreDictionary.WILDCARD_VALUE, getMode(mode), null));
}
Also used : ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 7 with IItemStack

use of crafttweaker.api.item.IItemStack in project Minestuck by mraof.

the class Combinations method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack input1, IItemStack input2, String mode, IItemStack output) {
    ItemStack stack1 = (ItemStack) input1.getInternal();
    ItemStack stack2 = (ItemStack) input2.getInternal();
    recipes.add(new SetRecipe(stack1.getItem(), stack1.getItemDamage(), stack2.getItem(), stack2.getItemDamage(), getMode(mode), (ItemStack) output.getInternal()));
}
Also used : ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 8 with IItemStack

use of crafttweaker.api.item.IItemStack in project Minestuck by mraof.

the class Combinations method addOreDictRecipe.

@ZenMethod
public static void addOreDictRecipe(IItemStack input1, String input2, String mode, IItemStack output) {
    ItemStack stack = (ItemStack) input1.getInternal();
    recipes.add(new SetRecipe(stack.getItem(), stack.getItemDamage(), input2, OreDictionary.WILDCARD_VALUE, getMode(mode), (ItemStack) output.getInternal()));
}
Also used : ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 9 with IItemStack

use of crafttweaker.api.item.IItemStack in project Binnie by ForestryMC.

the class BreweryRecipeHandler method addRecipe.

@ZenMethod
public static void addRecipe(ILiquidStack input, ILiquidStack output, @Optional IItemStack yeast) {
    FluidStack inputStack = CraftTweakerUtil.getLiquidStack(input);
    FluidStack outputStack = CraftTweakerUtil.getLiquidStack(output);
    ItemStack yeastStack = ExtraTreeItems.YEAST.get(1);
    if (yeast != null) {
        yeastStack = CraftTweakerUtil.getItemStack(yeast);
    }
    addRecipe(new BreweryRecipe(inputStack, outputStack, yeastStack), ExtraTreesRecipeManager.breweryManager);
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) BreweryRecipe(binnie.extratrees.machines.brewery.recipes.BreweryRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 10 with IItemStack

use of crafttweaker.api.item.IItemStack in project Binnie by ForestryMC.

the class BreweryRecipeHandler method addGrainRecipe.

@ZenMethod
public static void addGrainRecipe(IOreDictEntry grainOreName, ILiquidStack output, @Optional IOreDictEntry ingredientOreName, @Optional IItemStack yeast) {
    FluidStack outputStack = CraftTweakerUtil.getLiquidStack(output);
    ItemStack yeastStack = ExtraTreeItems.YEAST.get(1);
    if (yeast != null) {
        yeastStack = CraftTweakerUtil.getItemStack(yeast);
    }
    addRecipe(new BrewedGrainRecipe(outputStack, grainOreName.getName(), ingredientOreName.getName(), yeastStack), ExtraTreesRecipeManager.breweryManager);
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) BrewedGrainRecipe(binnie.extratrees.machines.brewery.recipes.BrewedGrainRecipe) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

IItemStack (crafttweaker.api.item.IItemStack)24 ItemStack (net.minecraft.item.ItemStack)18 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)14 IIngredient (crafttweaker.api.item.IIngredient)4 FluidStack (net.minecraftforge.fluids.FluidStack)4 IAction (crafttweaker.IAction)2 IngredientStack (crafttweaker.api.item.IngredientStack)2 CraftTweakerMC (crafttweaker.api.minecraft.CraftTweakerMC)2 IOreDictEntry (crafttweaker.api.oredict.IOreDictEntry)2 PackingRecipe (betterwithaddons.crafting.recipes.PackingRecipe)1 IngredientCraftTweaker (betterwithaddons.util.IngredientCraftTweaker)1 BrewedGrainRecipe (binnie.extratrees.machines.brewery.recipes.BrewedGrainRecipe)1 BreweryRecipe (binnie.extratrees.machines.brewery.recipes.BreweryRecipe)1 FruitPressRecipe (binnie.extratrees.machines.fruitpress.recipes.FruitPressRecipe)1 LumbermillRecipe (binnie.extratrees.machines.lumbermill.recipes.LumbermillRecipe)1 ComparableItemStack (blusunrize.immersiveengineering.api.ComparableItemStack)1 MetalPressRecipe (blusunrize.immersiveengineering.api.crafting.MetalPressRecipe)1 GristSet (com.mraof.minestuck.util.GristSet)1 IMod (crafttweaker.api.mods.IMod)1 BracketHandlerItem (crafttweaker.mc1120.brackets.BracketHandlerItem)1