Class PlayerGameModeRequestEvent
java.lang.Object
net.minestom.server.event.player.PlayerGameModeRequestEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
Called when a player uses the F3+F4 menu to try and change their gamemode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the player.Gets the requested gamemode.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstanceMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerGameModeRequestEvent
-
-
Method Details
-
getRequestedGameMode
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-