Search in sources :

Example 16 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod 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 17 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod 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 18 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project Binnie by ForestryMC.

the class DistilleryRecipeHandler method addRecipe.

@ZenMethod
public static void addRecipe(ILiquidStack input, ILiquidStack output, int level) {
    FluidStack inputStack = CraftTweakerUtil.getLiquidStack(input);
    FluidStack outputStack = CraftTweakerUtil.getLiquidStack(output);
    addRecipe(new DistilleryRecipe(inputStack, outputStack, level), ExtraTreesRecipeManager.distilleryManager);
}
Also used : DistilleryRecipe(binnie.extratrees.machines.distillery.recipes.DistilleryRecipe) FluidStack(net.minecraftforge.fluids.FluidStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 19 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod 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 20 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod 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

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)67 ItemStack (net.minecraft.item.ItemStack)23 IItemStack (crafttweaker.api.item.IItemStack)14 FluidStack (net.minecraftforge.fluids.FluidStack)7 PharmacologyEffect (minechem.potion.PharmacologyEffect)6 IItemStack (minetweaker.api.item.IItemStack)6 PotionChemical (minechem.potion.PotionChemical)4 NetRecipe (betterwithaddons.crafting.recipes.NetRecipe)3 CherryBoxRecipe (betterwithaddons.crafting.recipes.CherryBoxRecipe)2 GristSet (com.mraof.minestuck.util.GristSet)2 IAction (crafttweaker.IAction)2 ChemicalRoomStateEnum (minechem.item.ChemicalRoomStateEnum)2 PackingRecipe (betterwithaddons.crafting.recipes.PackingRecipe)1 SmeltingRecipe (betterwithaddons.crafting.recipes.SmeltingRecipe)1 SpindleRecipe (betterwithaddons.crafting.recipes.SpindleRecipe)1 WoodHardness (betterwithaddons.handler.StumpingHandler.WoodHardness)1 ItemMaterial (betterwithaddons.item.ItemMaterial)1 TreeFood (betterwithaddons.tileentity.TileEntityLureTree.TreeFood)1 IngredientCraftTweaker (betterwithaddons.util.IngredientCraftTweaker)1 BrewedGrainRecipe (binnie.extratrees.machines.brewery.recipes.BrewedGrainRecipe)1