Search Results for

    Show / Hide Table of Contents

    Class ChangedItemEventArgs

    Contains all information after a player's held item changes.

    Inheritance
    System.Object
    ChangedItemEventArgs
    Implements
    IPlayerEvent
    IItemEvent
    IExiledEvent
    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 Source

    ChangedItemEventArgs(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 Source

    Item

    Gets the new item.

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    NewItem

    Gets the new item.

    Declaration
    [Obsolete("Use ev.Item instead of this")]
    public Item NewItem { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    OldItem

    Gets the previous item.

    Declaration
    public Item OldItem { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    Player

    Gets the player who's changed the item.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player

    Implements

    IPlayerEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX