Search Results for

    Show / Hide Table of Contents

    Class ItemRemovedEventArgs

    Contains all information after removing an item from a player's inventory.

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

    Constructors

    | Improve this Doc View Source

    ItemRemovedEventArgs(ReferenceHub, ItemBase, ItemPickupBase)

    Initializes a new instance of the ItemRemovedEventArgs class.

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

    The ReferenceHub the item was removed to.

    InventorySystem.Items.ItemBase itemBase

    The removed 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 removed.

    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 removed.

    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