Class ItemRemovedEventArgs
Contains all information after removing an item from a player's inventory.
public class ItemRemovedEventArgs : IItemEvent, IPlayerEvent, IPickupEvent, IExiledEvent
- Inheritance
-
ItemRemovedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ItemRemovedEventArgs(ReferenceHub, ItemBase, ItemPickupBase)
Initializes a new instance of the ItemRemovedEventArgs class.
public ItemRemovedEventArgs(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)
Parameters
referenceHub
ReferenceHubThe ReferenceHub the item was removed to.
itemBase
ItemBaseThe removed InventorySystem.Items.ItemBase.
pickupBase
ItemPickupBaseThe 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 removed.
public Item Item { get; }
Property Value
Pickup
Gets the pickup that the item originated from or null if the item was not picked up.
public Pickup Pickup { get; }
Property Value
Player
Gets the player that had the item removed.
public Player Player { get; }