Package net.minecraftforge.event.brewing
Class PotionBrewEvent.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.brewing.PotionBrewEvent
net.minecraftforge.event.brewing.PotionBrewEvent.Pre
- Enclosing class:
- PotionBrewEvent
PotionBrewEvent.Pre is fired before vanilla brewing takes place.
All changes made to the event's array will be made to the TileEntity if the event is canceled.
The event is fired during the
This event is
If the event is not canceled, the vanilla brewing will take place instead of modded brewing.
This event does not have a result.
This event is fired on the
If this event is canceled, and items have been modified, PotionBrewEvent.Post will automatically be fired.
The event is fired during the
BrewingStandBlockEntity#doBrew(Level, BlockPos, NonNullList)
method invocation.PotionBrewEvent.stacks
contains the itemstack array from the TileEntityBrewer holding all items in Brewer.This event is
Cancelable
.If the event is not canceled, the vanilla brewing will take place instead of modded brewing.
This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.If this event is canceled, and items have been modified, PotionBrewEvent.Post will automatically be fired.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.brewing.PotionBrewEvent
PotionBrewEvent.Post, PotionBrewEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.brewing.PotionBrewEvent
getItem, getLength, setItem
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
-