类 VanillaGameEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.VanillaGameEvent
public class VanillaGameEvent
extends net.minecraftforge.eventbus.api.Event
VanillaGameEvent is fired on the server whenever one of Vanilla's
This allows for listening to Vanilla's events in a more structured and global way that is not tied to needing a block entity listener.
This event is fired on the
Cancel this event to prevent Vanilla from posting the
GameEvents
fire. This allows for listening to Vanilla's events in a more structured and global way that is not tied to needing a block entity listener.
This event is fired on the
MinecraftForge.EVENT_BUS
. Cancel this event to prevent Vanilla from posting the
GameEvent
to all nearby GameEventListeners
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final GameEvent.Context
private final Level
private final Vec3
private final GameEvent
-
构造器概要
构造器构造器说明VanillaGameEvent
(Level level, GameEvent vanillaEvent, Vec3 position, GameEvent.Context context) -
方法概要
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
level
-
vanillaEvent
-
position
-
context
-
-
构造器详细资料
-
VanillaGameEvent
public VanillaGameEvent(Level level, GameEvent vanillaEvent, Vec3 position, GameEvent.Context context)
-
-
方法详细资料