Interface ScreenEvent.InitPost

Enclosing interface:
ScreenEvent

public static interface ScreenEvent.InitPost
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(net.minecraft.client.gui.screen.Screen screen)
    An event that is triggered after a Screen object has been initialized.
  • Method Details

    • invoke

      void invoke(net.minecraft.client.gui.screen.Screen screen)
      An event that is triggered after a Screen object has been initialized. This event provides an opportunity for listeners to perform actions or modify the state of the Screen after its initialization.

      This event uses a Consumer interface for its listeners, which accept a Screen argument representing the Screen that was initialized.

      Parameters:
      screen - The Screen in question.