Class UsedItemEventArgs
Contains all information after a player used an item.
Inheritance
System.Object
UsedItemEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class UsedItemEventArgs : IPlayerEvent, IUsableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsedItemEventArgs(ReferenceHub, UsableItem)
Initializes a new instance of the UsedItemEventArgs class.
Declaration
public UsedItemEventArgs(ReferenceHub player, UsableItem item)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | player | |
InventorySystem.Items.Usables.UsableItem | item |
Properties
| Improve this Doc View SourceItem
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who used the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Usable
Gets the item that the player used.
Declaration
public Usable Usable { get; }
Property Value
Type | Description |
---|---|
Usable |