Class PlayerItemCooldownEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class PlayerItemCooldownEvent extends PlayerItemGroupCooldownEvent
Fired when a player receives an item cooldown when using an item.
See Also:
  • Constructor Details

    • PlayerItemCooldownEvent

      @Internal public PlayerItemCooldownEvent(Player player, Material type, NamespacedKey cooldownGroup, int cooldown)
  • Method Details

    • getType

      public Material getType()
      Get the material of the item affected by the cooldown.
      Returns:
      material affected by the cooldown