public class PlayerChangedMainHandEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerChangedMainHandEvent(Player who,
MainHand mainHand) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
MainHand |
getMainHand() |
Gets the new main hand of the player.
|
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
@NotNull public MainHand getMainHand()
HumanEntity.getMainHand()
.MainHand
of the player@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.