Search Results for

    Show / Hide Table of Contents

    Class PlayerItemDropEvent

    Dispatched when an OpenPlayer drops an item

    Inheritance
    System.Object
    Event
    PlayerEvent
    PlayerItemDropEvent
    Inherited Members
    PlayerEvent.Player
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Player
    Assembly: OpenAPI.dll
    Syntax
    public class PlayerItemDropEvent : PlayerEvent

    Constructors

    | Improve this Doc View Source

    PlayerItemDropEvent(OpenPlayer, PlayerLocation, Item, Item)

    Declaration
    public PlayerItemDropEvent(OpenPlayer player, PlayerLocation dropFrom, Item droppedItem, Item newInventoryItem)
    Parameters
    Type Name Description
    OpenPlayer player
    PlayerLocation dropFrom
    Item droppedItem
    Item newInventoryItem

    Properties

    | Improve this Doc View Source

    DroppedItem

    The item dropped

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

    From

    The location of the player at the time of dropping

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

    NewInventoryItem

    The item replacing the inventory slot

    Declaration
    public Item NewInventoryItem { get; }
    Property Value
    Type Description
    Item
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX