Package org.bukkit.event.player
Class PlayerChangedMainHandEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChangedMainHandEvent
Called when a player changes their main hand in the client settings.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Gets the new main hand of the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerChangedMainHandEvent
-
-
Method Details
-
getMainHand
Gets the new main hand of the player. The old hand is still momentarily available viaHumanEntity.getMainHand()
.- Returns:
- the new
MainHand
of the player
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-