Class SwingingEventArgs
Contains all information before a player swings a Jailbird.
Inheritance
System.Object
SwingingEventArgs
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.Item
Assembly: Exiled.Events.dll
Syntax
public class SwingingEventArgs : IPlayerEvent, IItemEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceSwingingEventArgs(ReferenceHub, ItemBase, Boolean)
Initializes a new instance of the SwingingEventArgs class.
Declaration
public SwingingEventArgs(ReferenceHub player, ItemBase swingItem, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | player | |
InventorySystem.Items.ItemBase | swingItem | The item being swung. |
System.Boolean | isAllowed | Whether the item can be swung or not. |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the item can be swung.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets the Item that is being swung.
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the Player who's swinging an item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |