Class Item
Item related events.
Inheritance
Inherited Members
Namespace: Exiled.Events.Handlers
Assembly: Exiled.Events.dll
Syntax
public static class Item
Properties
| Improve this Doc View SourceChangingAmmo
Invoked before the ammo of an firearm are changed.
Declaration
public static Event<ChangingAmmoEventArgs> ChangingAmmo { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<ChangingAmmoEventArgs> |
ChangingAttachments
Invoked before item attachments are changed.
Declaration
public static Event<ChangingAttachmentsEventArgs> ChangingAttachments { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<ChangingAttachmentsEventArgs> |
ChargingJailbird
Invoked before a Jailbird is charged.
Declaration
public static Event<ChargingJailbirdEventArgs> ChargingJailbird { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<ChargingJailbirdEventArgs> |
KeycardInteracting
Invoked before a keycard interacts with a door.
Declaration
public static Event<KeycardInteractingEventArgs> KeycardInteracting { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<KeycardInteractingEventArgs> |
ReceivingPreference
Invoked before receiving a preference.
Declaration
public static Event<ReceivingPreferenceEventArgs> ReceivingPreference { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<ReceivingPreferenceEventArgs> |
Swinging
Invoked before a melee item is swung.
Declaration
public static Event<SwingingEventArgs> Swinging { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<SwingingEventArgs> |
UsingRadioPickupBattery
Invoked before a radio pickup is draining battery.
Declaration
public static Event<UsingRadioPickupBatteryEventArgs> UsingRadioPickupBattery { get; set; }
Property Value
| Type | Description |
|---|---|
| Event<UsingRadioPickupBatteryEventArgs> |
Methods
| Improve this Doc View SourceOnChangingAmmo(ChangingAmmoEventArgs)
Called before the ammo of an firearm is changed.
Declaration
public static void OnChangingAmmo(ChangingAmmoEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| ChangingAmmoEventArgs | ev | The ChangingAmmoEventArgs instance. |
OnChangingAttachments(ChangingAttachmentsEventArgs)
Called before item attachments are changed.
Declaration
public static void OnChangingAttachments(ChangingAttachmentsEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| ChangingAttachmentsEventArgs | ev | The ChangingAttachmentsEventArgs instance. |
OnChargingJailbird(ChargingJailbirdEventArgs)
Called before a Jailbird is charged.
Declaration
public static void OnChargingJailbird(ChargingJailbirdEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| ChargingJailbirdEventArgs | ev | The ChargingJailbirdEventArgs instance. |
OnKeycardInteracting(KeycardInteractingEventArgs)
Called before keycard interacts with a door.
Declaration
public static void OnKeycardInteracting(KeycardInteractingEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| KeycardInteractingEventArgs | ev | The KeycardInteractingEventArgs instance. |
OnReceivingPreference(ReceivingPreferenceEventArgs)
Called before receiving a preference.
Declaration
public static void OnReceivingPreference(ReceivingPreferenceEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceivingPreferenceEventArgs | ev | The ReceivingPreferenceEventArgs instance. |
OnSwinging(SwingingEventArgs)
Called before a melee item is swung.
Declaration
public static void OnSwinging(SwingingEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| SwingingEventArgs | ev | The SwingingEventArgs instance. |
OnUsingRadioPickupBattery(UsingRadioPickupBatteryEventArgs)
Called before radio pickup is draining battery.
Declaration
public static void OnUsingRadioPickupBattery(UsingRadioPickupBatteryEventArgs ev)
Parameters
| Type | Name | Description |
|---|---|---|
| UsingRadioPickupBatteryEventArgs | ev | The UsingRadioPickupBatteryEventArgs instance. |