Interface ClientGuiEvent.ScreenInitPre
- Enclosing interface:
- ClientGuiEvent
@Environment(CLIENT)
public static interface ClientGuiEvent.ScreenInitPre
-
Method Summary
Modifier and TypeMethodDescriptioninit(net.minecraft.client.gui.screens.Screen screen, ScreenAccess access) Invoked when a screen is being initialized and after the previous widgets have been cleared.
-
Method Details
-
init
Invoked when a screen is being initialized and after the previous widgets have been cleared. Equivalent to Forge'sGuiScreenEvent.InitGuiEvent.Preevent.- Parameters:
screen- The screen.access- The accessor of the screen.- Returns:
- A
EventResultdetermining the outcome of the event, the execution of the vanilla initialization may be cancelled by the result.
-