Table of Contents

Class ItemAddedEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

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

public class ItemAddedEventArgs : IItemEvent, IPlayerEvent, IPickupEvent, IExiledEvent
Inheritance
ItemAddedEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ItemAddedEventArgs(ReferenceHub, ItemBase, ItemPickupBase)

Initializes a new instance of the ItemAddedEventArgs class.

public ItemAddedEventArgs(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)

Parameters

referenceHub ReferenceHub

The ReferenceHub the item was added to.

itemBase ItemBase

The added InventorySystem.Items.ItemBase.

pickupBase ItemPickupBase

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

Properties

Item

Gets the item that was added.

public Item Item { get; }

Property Value

Item

Pickup

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

public Pickup Pickup { get; }

Property Value

Pickup

Player

Gets the player that had the item added.

public Player Player { get; }

Property Value

Player