Class AsyncPlayerChangeScreenEvent


public class AsyncPlayerChangeScreenEvent extends AsyncPlayerScreenEvent
Represents an event that is called when a player changes screens. Note that not all screens can be intercepted.
  • Constructor Details

  • Method Details

    • getNewScreen

      @NotNull public @NotNull AbstractScreen getNewScreen()
      Gets the screen the player is changing to.
      Returns:
      The screen the player is changing to