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