Class ItemRemovedEventArgs
Contains all information after removing an item from a player's inventory.
Inheritance
System.Object
ItemRemovedEventArgs
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 SourceItemRemovedEventArgs(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 SourceItem
Gets the item that was removed.
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 removed.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |