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