PlayerChangedMainHandEvent
PlayerChangedMainHandEvent
=> 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.当玩家在客户端设置中修改其主手时触发。译注:所谓“客户端设置”,指“自定义皮肤”界面。玩家可以在该界面设置其主手为左手或右手。默认情况下主手为右手。一般而言,涉及玩家交互时,交互行为只与主副手有关,而与左右手无关。玩家以左手为主手,和以右手为主手进行交互时,没有除客户端画面显示以外的区别。
方法声明: public MainHand getMainHand()
方法签名: ()Lorg/bukkit/inventory/MainHand;
Gets the new main hand of the player. The old hand is still momentarilyavailable via {@link Player#getMainHand()}.@return the new {@link MainHand} of the player该方法用于获取将要成为主手的那一侧手臂。可以使用Player#getMainHand()
方法获取原先的主手。@return 将要成为主手的那一侧手臂
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago