[SPIGOT-2696] Add the ability to get the products, fuel, and ingredient of a brewing from BrewEvent Created: 24/Sep/16  Updated: 27/Sep/23  Resolved: 27/Sep/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: zombachu Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: BrewEvent, brewing, event, potion, stand


 Description   

Currently, BrewEvent only provides access to the BrewerInventory as it is before the brewing takes place. This means that there's no way to know what the products are, without having to figure that out based on the ingredient. An additional method such as getResults (to keep the naming consistent with FurnaceSmeltEvent, I guess) would be nice to be able to get a list of products made (no null values though, please)

For consistency and convenience, it would be nice to have corresponding getFuel and getIngredient events with their future itemstacks, even though it's easy to figure those out already by just subtracting 1 from their current amounts.



 Comments   
Comment by Doc [ 27/Sep/23 ]

The event now has the results for comparate

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/9b45fa2fab08e654962ed0ca5f85f6d22bea40c2

 

Generated at Sat Dec 13 15:26:35 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.