Class PlayerItemDropEvent
Dispatched when an OpenPlayer drops an item
Namespace: OpenAPI.Events.Player
Assembly: OpenAPI.dll
Syntax
public class PlayerItemDropEvent : PlayerEvent
Constructors
| Improve this Doc View SourcePlayerItemDropEvent(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 SourceDroppedItem
The item dropped
Declaration
public Item DroppedItem { get; }
Property Value
| Type | Description |
|---|---|
| Item |
From
The location of the player at the time of dropping
Declaration
public PlayerLocation From { get; }
Property Value
| Type | Description |
|---|---|
| PlayerLocation |
NewInventoryItem
The item replacing the inventory slot
Declaration
public Item NewInventoryItem { get; }
Property Value
| Type | Description |
|---|---|
| Item |