Search Results for

    Show / Hide Table of Contents

    Class UsedItemEventArgs

    Contains all information after a player used an item.

    Inheritance
    System.Object
    UsedItemEventArgs
    Implements
    IPlayerEvent
    IUsableEvent
    IItemEvent
    IExiledEvent
    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 Source

    UsedItemEventArgs(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 Source

    Item

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    Player

    Gets the player who used the item.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Usable

    Gets the item that the player used.

    Declaration
    public Usable Usable { get; }
    Property Value
    Type Description
    Usable

    Implements

    IPlayerEvent
    IUsableEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX