Class PotionBrewEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.brewing.PotionBrewEvent
- Direct Known Subclasses:
PotionBrewEvent.Post, PotionBrewEvent.Pre
public abstract class PotionBrewEvent
extends net.neoforged.bus.api.Event
Base event for potion brewing through a brewing stand.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis event is fired after potions are brewed in a brewing stand.static classThis event is fired before vanilla brewing in a brewing stand takes place. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
stacks
-
-
Constructor Details
-
PotionBrewEvent
-
-
Method Details
-
getItem
Returns the item stack stored at the given index.- Parameters:
index- the slot index- Returns:
- the item stack stored at the given index
- Throws:
IndexOutOfBoundsException- if the index is negative, or equal or greater than the size of the inventory
-
getLength
public int getLength()Returns the size of the brewing stand's inventory.- Returns:
- the size of the brewing stand's inventory
-