mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Added an event on potion ingredient applied. Event contains the item stacks of each of the potions being brewed as well as any remaining ingredients. Changed TileEntityBrewingStand and SlotBrewingStandPotion to look for instanceof ItemPotion rather than potion.itemID
15 lines
445 B
Java
15 lines
445 B
Java
package net.minecraftforge.event.brewing;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.event.Event;
|
|
|
|
public class PotionBrewedEvent extends Event{
|
|
/**
|
|
* The brewing stacks in the brewing stand. Each index has the possibility to be null, so make sure you check.
|
|
*/
|
|
public ItemStack[] brewingStacks;
|
|
public PotionBrewedEvent(ItemStack[] brewingStacks){
|
|
this.brewingStacks = brewingStacks;
|
|
}
|
|
}
|