Class ItemAddedEventArgs
Contains all information after adding an item to a player's inventory.
Inheritance
System.Object
ItemAddedEventArgs
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 SourceItemAddedEventArgs(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 SourceItem
Gets the item that was added.
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
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 |
Player
Gets the player that had the item added.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |