类 PotionBrewEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.brewing.PotionBrewEvent
net.neoforged.neoforge.event.brewing.PotionBrewEvent.Pre
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
PotionBrewEvent
public static class PotionBrewEvent.Pre
extends PotionBrewEvent
implements net.neoforged.bus.api.ICancellableEvent
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
ICancellableEvent
.If the event is not canceled, the vanilla brewing will take place instead of modded brewing.
This event does not have a result.
引用无效
HasResult
This event is fired on the
NeoForge.EVENT_BUS
.If this event is canceled, and items have been modified, PotionBrewEvent.Post will automatically be fired.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.brewing.PotionBrewEvent
PotionBrewEvent.Post, PotionBrewEvent.Pre
-
构造器概要
构造器 -
方法概要
从类继承的方法 net.neoforged.neoforge.event.brewing.PotionBrewEvent
getItem, getLength, setItem
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
构造器详细资料
-
Pre
-