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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
PotionBrewEvent.Post is fired when a potion is brewed in the brewing stand.static class
PotionBrewEvent.Pre is fired before vanilla brewing takes place. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PotionBrewEvent
(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks) -
Method Summary
-
Field Details
-
stacks
private net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks
-
-
Constructor Details
-
PotionBrewEvent
protected PotionBrewEvent(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stacks)
-
-
Method Details
-
getItem
public net.minecraft.world.item.ItemStack getItem(int index) -
setItem
public void setItem(int index, net.minecraft.world.item.ItemStack stack) -
getLength
public int getLength()
-