Class ChangedItemEventArgs
Contains all information after a player's held item changes.
Inheritance
System.Object
ChangedItemEventArgs
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 ChangedItemEventArgs : IPlayerEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangedItemEventArgs(Player, ItemBase)
Initializes a new instance of the ChangedItemEventArgs class.
Declaration
public ChangedItemEventArgs(Player player, ItemBase oldItem)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.ItemBase | oldItem |
Properties
| Improve this Doc View SourceItem
Gets the new item.
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
NewItem
Gets the new item.
Declaration
[Obsolete("Use ev.Item instead of this")]
public Item NewItem { get; }
Property Value
Type | Description |
---|---|
Item |
OldItem
Gets the previous item.
Declaration
public Item OldItem { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's changed the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |