Search in sources :

Example 56 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)

Example 57 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 58 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 59 with ZenMethod

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

the class FruitPressRecipeHandler method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack input, ILiquidStack output) {
    ItemStack inputStack = CraftTweakerUtil.getItemStack(input);
    FluidStack outputStack = CraftTweakerUtil.getLiquidStack(output);
    addRecipe(new FruitPressRecipe(inputStack, outputStack), ExtraTreesRecipeManager.fruitPressManager);
}
Also used : FruitPressRecipe(binnie.extratrees.machines.fruitpress.recipes.FruitPressRecipe) FluidStack(net.minecraftforge.fluids.FluidStack) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 60 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project GregTech by GregTechCEu.

the class CTTerminalRegistry method registerDevice.

@ZenMethod
public static void registerDevice(IItemStack device, String name) {
    ItemStack itemStack = CraftTweakerMC.getItemStack(device).copy();
    if (!itemStack.isEmpty()) {
        itemStack.setCount(1);
        EnumHelper.addEnum(DeviceHardware.DEVICE.class, name.toUpperCase(), new Class[] { ItemStack.class, String.class }, itemStack, name.toLowerCase());
    }
}
Also used : ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) DeviceHardware(gregtech.common.terminal.hardware.DeviceHardware) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)108 ItemStack (net.minecraft.item.ItemStack)47 IItemStack (minetweaker.api.item.IItemStack)28 IItemStack (crafttweaker.api.item.IItemStack)16 FluidStack (net.minecraftforge.fluids.FluidStack)10 PharmacologyEffect (minechem.potion.PharmacologyEffect)6 NetRecipe (betterwithaddons.crafting.recipes.NetRecipe)3 IEnchantment (crafttweaker.api.enchantments.IEnchantment)3 PotionChemical (minechem.potion.PotionChemical)3 MineTweakerMC.getItemStack (minetweaker.api.minecraft.MineTweakerMC.getItemStack)3 CherryBoxRecipe (betterwithaddons.crafting.recipes.CherryBoxRecipe)2 GristSet (com.mraof.minestuck.util.GristSet)2 IAction (crafttweaker.IAction)2 EnchantmentData (gregtech.api.enchants.EnchantmentData)2 FluidType (gregtech.api.fluids.fluidType.FluidType)2 FluidKey (gregtech.api.recipes.FluidKey)2 ArrayList (java.util.ArrayList)2 ChemicalRoomStateEnum (minechem.item.ChemicalRoomStateEnum)2 Block (net.minecraft.block.Block)2 Enchantment (net.minecraft.enchantment.Enchantment)2