Class ScreenEvent.Init.Pre

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
ScreenEvent.Init

public static class ScreenEvent.Init.Pre extends ScreenEvent.Init implements net.neoforged.bus.api.ICancellableEvent
Fired before the screen's overridable initialization method is fired.

This event is cancellable, and does not

invalid reference
have a result
. If the event is cancelled, the initialization method will not be called, and the widgets and children lists will not be cleared.

This event is fired on the main Forge event bus, only on the logical client.