Class DroppingItemEventArgs
Contains all information before a player drops an item.
public class DroppingItemEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
DroppingItemEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
DroppingItemEventArgs(Player, ItemBase, bool, bool)
Initializes a new instance of the DroppingItemEventArgs class.
public DroppingItemEventArgs(Player player, ItemBase item, bool isThrown, bool isAllowed = true)
Parameters
Properties
IsAllowed
Gets or sets a value indicating whether the item can be dropped.
public bool IsAllowed { get; set; }
Property Value
IsThrown
Gets or sets a value indicating whether the item was thrown.
public bool IsThrown { get; set; }
Property Value
Item
Gets the item to be dropped.
public Item Item { get; }
Property Value
Player
Gets the player who's dropping the item.
public Player Player { get; }