Search in sources :

Example 11 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.

the class CTIndustrialElectrolyzer method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient cells, IIngredient input2, int ticktime, int euTick) {
    Object oInput1 = CraftTweakerCompat.toObject(cells);
    Object oInput2 = CraftTweakerCompat.toObject(input2);
    IndustrialElectrolyzerRecipe r = new IndustrialElectrolyzerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
    addRecipe(r);
}
Also used : IndustrialElectrolyzerRecipe(techreborn.api.recipe.machines.IndustrialElectrolyzerRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 12 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.

the class Alchemy method removeCost.

@ZenMethod
public static void removeCost(IItemStack iStack) {
    ItemStack stack = (ItemStack) iStack.getInternal();
    recipes.add(new SetCost(stack.getItem(), stack.getItemDamage(), null));
}
Also used : ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 13 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.

the class Alchemy method setOreDictCost.

@ZenMethod
public static void setOreDictCost(String name, String cost) {
    GristSet grist = getGrist(cost);
    if (grist == null)
        return;
    recipes.add(new SetCost(name, OreDictionary.WILDCARD_VALUE, grist));
}
Also used : GristSet(com.mraof.minestuck.util.GristSet) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 14 with ZenMethod

use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.

the class Alchemy method setCost.

@ZenMethod
public static void setCost(IItemStack iStack, String cost) {
    ItemStack stack = (ItemStack) iStack.getInternal();
    GristSet grist = getGrist(cost);
    if (grist == null)
        return;
    recipes.add(new SetCost(stack.getItem(), stack.getItemDamage(), grist));
}
Also used : GristSet(com.mraof.minestuck.util.GristSet) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 15 with ZenMethod

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

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