Interface ClientGuiEvent.ScreenInitPre

Enclosing interface:
ClientGuiEvent

@Environment(CLIENT) public static interface ClientGuiEvent.ScreenInitPre
  • Method Summary

    Modifier and Type
    Method
    Description
    init(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

      EventResult init(net.minecraft.client.gui.screens.Screen screen, ScreenAccess access)
      Invoked when a screen is being initialized and after the previous widgets have been cleared. Equivalent to Forge's GuiScreenEvent.InitGuiEvent.Pre event.
      Parameters:
      screen - The screen.
      access - The accessor of the screen.
      Returns:
      A EventResult determining the outcome of the event, the execution of the vanilla initialization may be cancelled by the result.