Class AsyncPlayerChangeScreenEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerChangeScreenEvent
Represents an event that is called when a player changes screens. Note that not all screens can be intercepted.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncPlayerChangeScreenEvent
(@NotNull AbstractScreen oldScreen, @NotNull AbstractScreen newScreen, @NotNull SocketPlayer player) Creates a new AsyncPlayerChangeScreenEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the screen the player is changing to.Methods inherited from class xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
getScreen
Methods inherited from class xyz.gmitch215.socketmc.events.SocketEvent
getHandlerList, getHandlers, getPlayer, getSocketPlayer, toString
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AsyncPlayerChangeScreenEvent
public AsyncPlayerChangeScreenEvent(@NotNull @NotNull AbstractScreen oldScreen, @NotNull @NotNull AbstractScreen newScreen, @NotNull @NotNull SocketPlayer player) Creates a new AsyncPlayerChangeScreenEvent instance.- Parameters:
oldScreen
- The screen the player is changing fromnewScreen
- The screen the player is changing toplayer
- The player associated with this event
-
-
Method Details
-
getNewScreen
Gets the screen the player is changing to.- Returns:
- The screen the player is changing to
-