Search Results for

    Show / Hide Table of Contents

    Class ItemAddedEventArgs

    Contains all information after adding an item to a player's inventory.

    Inheritance
    System.Object
    ItemAddedEventArgs
    Implements
    IPlayerEvent
    IItemEvent
    IPickupEvent
    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 ItemAddedEventArgs : IPlayerEvent, IItemEvent, IPickupEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    ItemAddedEventArgs(ReferenceHub, ItemBase, ItemPickupBase)

    Initializes a new instance of the ItemAddedEventArgs class.

    Declaration
    public ItemAddedEventArgs(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)
    Parameters
    Type Name Description
    ReferenceHub referenceHub

    The ReferenceHub the item was added to.

    InventorySystem.Items.ItemBase itemBase

    The added InventorySystem.Items.ItemBase.

    InventorySystem.Items.Pickups.ItemPickupBase pickupBase

    The InventorySystem.Items.Pickups.ItemPickupBase the InventorySystem.Items.ItemBase originated from, or null if the item was not picked up.

    Properties

    | Improve this Doc View Source

    Item

    Gets the item that was added.

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

    Pickup

    Gets the pickup that the item originated from or null if the item was not picked up.

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

    Player

    Gets the player that had the item added.

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

    Implements

    IPlayerEvent
    IItemEvent
    IPickupEvent
    IExiledEvent

    Extension Methods

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