Class UsingItemEventArgs
Contains all information before a player uses an item.
public class UsingItemEventArgs : IDeniableEvent, IUsableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
UsingItemEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
UsingItemEventArgs(Player, UsableItem, float)
Initializes a new instance of the UsingItemEventArgs class.
public UsingItemEventArgs(Player player, UsableItem item, float cooldown)
Parameters
Properties
Cooldown
Gets or sets the item cooldown.
public float Cooldown { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the player can use the item.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Player
Gets the player who using the item.
public Player Player { get; }
Property Value
Usable
Gets the item that the player using.
public Usable Usable { get; }