Bukkit/CraftBukkit — pull request #1157 by shinyquagsire23 (2013-05-06 00:12:49+00:00)
Title: [B+C] Added BrewEndEvent.Added getPotions method to Brew(End)Event. Fixes BUKKIT-2441.

#### The Issue:
There currently exists no way to retrieve the results from a Brewing Stand immediately as they are added to the three slots. There also doesn't exist a way to retrieve the three items as Potion objects without having to do so manually.

#### Justification for this PR:
Since no way exists to do this, plugins have to use workaround methods to retrieve the results exactly after they are complete, and thus these methods might not stay within the Bukkit API and abuse CraftBukkit and/or NMS. It is also frustrating to have to convert manually to a Potion object what should be provided by the event by default.

With BrewEndEvent, it has one extra method separate from BrewEvent, and that is the getIngredient method, which provides a cloned item of the current ingredient stack before it's amount is decreased. Using this it is possible to have ingredients with specific metadata to allow for a temporary method of adding new recipes to Bukkit. It also allows plugin creators to manipulate the potions (ie change name) or add functionality after brewing (ie shoot entities of the potions from the top of the brewer or something similar). The addition of getPotions() can aid in the comparison and manipulation of the resulting items.

#### PR Breakdown:
This PR fires BrewEndEvent immediately after the resulting items are created, but before the ingredient amount is decreased. This allows for plugins to still see the ingredient and thus allows for comparison with a cloned version of the ItemStack.

#### Relevant PR(s)
BUKKIT-2441 - https://bukkit.atlassian.net/browse/BUKKIT-2441
B-873 - Bukkit/Bukkit#873 - Corresponding Bukkit Pull