MinecraftForge/MinecraftForge — pull request #538 by Crudedragos (2013-04-21 00:01:43+00:00)
Title: Add PotionEvents to allow custom ItemPotions to be brewed

It is currently difficult to add ItemPotions as all the reference in TilEntityBrewingStand statically reference Potion instead of using the local ItemPotion instance. In lieu of replacing all those references (upon which these events would still hold value), the following events allow user desired brewing logic to be inserted.
* CanBrewEvent - Result event. determines if brewingStack and ingredient are valid for brewing. Called once for each brewingStack. If any stacks are valid brewing stand will continue to process.
* BrewingCraftEvent - Cancellable event. Used for inserting alternative potion crafting. Called once for each brewingStack. Allows manually settings the changes to the brewingStack triggered by the ingredient.
* BrewingConsumeEvent - Cancellable event. Allows overriding of default ingredient consumption. Included mostly to be complete, if we are allowing the individual BrewingCrafts to be cancelled, we should allow the ingredient to not be consumed / replaced with specifal contained / corrupted / or last multiple brewing operations.