fa2cbe2671
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
14 lines
445 B
Java
14 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;
|
|
}
|
|
}
|