Package io.papermc.paper.event.player
Class PlayerItemCooldownEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerItemGroupCooldownEvent
io.papermc.paper.event.player.PlayerItemCooldownEvent
- All Implemented Interfaces:
Cancellable
Fired when a player receives an item cooldown when using an item.
- See Also:
-
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
ConstructorDescriptionPlayerItemCooldownEvent
(Player player, Material type, NamespacedKey cooldownGroup, int cooldown) -
Method Summary
Methods inherited from class io.papermc.paper.event.player.PlayerItemGroupCooldownEvent
getCooldown, getCooldownGroup, getHandlerList, getHandlers, isCancelled, setCancelled, setCooldown
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerItemCooldownEvent
@Internal public PlayerItemCooldownEvent(Player player, Material type, NamespacedKey cooldownGroup, int cooldown)
-
-
Method Details
-
getType
Get the material of the item affected by the cooldown.- Returns:
- material affected by the cooldown
-