Class
import mods.roots.FlowerGrowth;
Methods
void removeRecipe( string name // The name of the recipe you wish to remove);
Removes a flower growth recipe by name.
void addRecipeBlockState( string name, // The name of the recipe that you're adding IBlockState state // The state of the block of the flower);
Adds a recipe to create the specific block state during the flower growth ritual.
void addRecipeBlock( string name, // The name of the recipe that you're adding IBlock block, // The block of the flower to be placed int meta // The meta of the state of the flower block);
Adds a recipe by creating a blockstate from a block along with the meta value from an itemblock to be grown during the flower growth ritual.
void addRecipeItem( string name, // The name of the recipe that you're adding IItemStack stack // The itemstack describing an itemblock to be placed);
Adds a recipe by creating a blockstate from an itemstack containing an itemblock and metadata to be grown during the Flower Growth ritual.
void addRecipeItemOnSoils( string name, // The name of the recipe that you're adding IItemStack stack, // The itemstack describing an itemblock to be placed List allowedSoils // A list of blocks that this flower can be placed on);
Adds a recipe by creating a blockstate from an itemstack containing an itemblock and metadata to be grown during the Flower Growth ritual. The flower will only be grown on a soil mentioned. Accepts oredict entries.
Examples
import mods.roots.FlowerGrowth;
// Removes the default recipe for dandelionFlowerGrowth.removeRecipe("dandelion");
// Adds a Botania white flower using block stateFlowerGrowth.addRecipeBlockState("mystical_white_flower", <blockstate:botania:flower:color=white>);
// Adds a Botania magenta flower using block + metaFlowerGrowth.addRecipeBlock("mystical_green_flower", <botania:flower>.asBlock(), 2);
Notes
Currently untested with double-tall flowers.