Class DroppingItemEventArgs
Contains all information before a player drops an item.
Inheritance
System.Object
DroppingItemEventArgs
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 DroppingItemEventArgs : IPlayerEvent, IItemEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDroppingItemEventArgs(Player, ItemBase, Boolean, Boolean)
Initializes a new instance of the DroppingItemEventArgs class.
Declaration
public DroppingItemEventArgs(Player player, ItemBase item, bool isThrown, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.ItemBase | item | |
System.Boolean | isThrown | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the item can be dropped.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsThrown
Gets or sets a value indicating whether or not the item was thrown.
Declaration
public bool IsThrown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets the item to be dropped.
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's dropping the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |