类 PlayerExpCooldownChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpCooldownChangeEvent
Called when a player's experience cooldown changes.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.player.PlayerEvent
player
-
构造器概要
构造器说明PlayerExpCooldownChangeEvent
(@NotNull Player player, int newcooldown, @NotNull PlayerExpCooldownChangeEvent.ChangeReason reason) -
方法概要
修饰符和类型方法说明static @NotNull HandlerList
int
Gets the new cooldown for the player.Gets the reason for the change.void
setNewCooldown
(int newCooldown) Sets the new cooldown for the player.从类继承的方法 org.bukkit.event.player.PlayerEvent
getPlayer
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
PlayerExpCooldownChangeEvent
-
-
方法详细资料
-
getReason
Gets the reason for the change.- 返回:
- The reason for the change
-
getNewCooldown
public int getNewCooldown()Gets the new cooldown for the player.- 返回:
- The new cooldown
- 另请参阅:
-
setNewCooldown
public void setNewCooldown(int newCooldown) Sets the new cooldown for the player.- 参数:
newCooldown
- The new cooldown to set- 另请参阅:
-
getHandlers
- 指定者:
getHandlers
在类中Event
-
getHandlerList
-