Table of Contents

Class Item

Namespace
Exiled.Events.Handlers
Assembly
Exiled.Events.dll

Item related events.

public static class Item
Inheritance
Item
Inherited Members

Properties

Cackling

Invoked before a marshmallow man cackles.

public static Event<CacklingEventArgs> Cackling { get; set; }

Property Value

Event<CacklingEventArgs>

ChangingAmmo

Invoked before the ammo of an firearm are changed.

public static Event<ChangingAmmoEventArgs> ChangingAmmo { get; set; }

Property Value

Event<ChangingAmmoEventArgs>

ChangingAttachments

Invoked before item attachments are changed.

public static Event<ChangingAttachmentsEventArgs> ChangingAttachments { get; set; }

Property Value

Event<ChangingAttachmentsEventArgs>

ChangingMicroHIDPickupState

Invoked before a MicroHIDPickup state is changed.

public static Event<ChangingMicroHIDPickupStateEventArgs> ChangingMicroHIDPickupState { get; set; }

Property Value

Event<ChangingMicroHIDPickupStateEventArgs>

ChargingJailbird

Invoked when a Jailbird starts charging.

public static Event<ChargingJailbirdEventArgs> ChargingJailbird { get; set; }

Property Value

Event<ChargingJailbirdEventArgs>

DisruptorFiring

Invoked before a ItemType.ParticleDisruptor firing while on the ground. The client will still see all effects, like sounds and shoot.

public static Event<DisruptorFiringEventArgs> DisruptorFiring { get; set; }

Property Value

Event<DisruptorFiringEventArgs>

InspectedItem

Invoked after item inspection is started.

public static Event<InspectedItemEventArgs> InspectedItem { get; set; }

Property Value

Event<InspectedItemEventArgs>

InspectingItem

Invoked before item inspection is started.

public static Event<InspectingItemEventArgs> InspectingItem { get; set; }

Property Value

Event<InspectingItemEventArgs>

JailbirdChangedWearState

Invoked after the Jailbird's InventorySystem.Items.Jailbird.JailbirdWearState is changed.

public static Event<JailbirdChangedWearStateEventArgs> JailbirdChangedWearState { get; set; }

Property Value

Event<JailbirdChangedWearStateEventArgs>

JailbirdChangingWearState

Invoked before the Jailbird's InventorySystem.Items.Jailbird.JailbirdWearState is changed.

public static Event<JailbirdChangingWearStateEventArgs> JailbirdChangingWearState { get; set; }

Property Value

Event<JailbirdChangingWearStateEventArgs>

JailbirdChargeComplete

Invoked after a Jailbird finishes charging.

public static Event<JailbirdChargeCompleteEventArgs> JailbirdChargeComplete { get; set; }

Property Value

Event<JailbirdChargeCompleteEventArgs>

KeycardInteracting

Invoked before a keycard interacts with a door.

public static Event<KeycardInteractingEventArgs> KeycardInteracting { get; set; }

Property Value

Event<KeycardInteractingEventArgs>
See Also

Punching

Invoked before a marshmallow man punches.

public static Event<PunchingEventArgs> Punching { get; set; }

Property Value

Event<PunchingEventArgs>

ReceivingPreference

Invoked before receiving a preference.

public static Event<ReceivingPreferenceEventArgs> ReceivingPreference { get; set; }

Property Value

Event<ReceivingPreferenceEventArgs>

Swinging

Invoked before a melee item is swung.

public static Event<SwingingEventArgs> Swinging { get; set; }

Property Value

Event<SwingingEventArgs>

UsingRadioPickupBattery

Invoked before a radio pickup is draining battery.

public static Event<UsingRadioPickupBatteryEventArgs> UsingRadioPickupBattery { get; set; }

Property Value

Event<UsingRadioPickupBatteryEventArgs>

Methods

OnCackling(CacklingEventArgs)

Called before a marshmallow man cackles.

public static void OnCackling(CacklingEventArgs ev)

Parameters

ev CacklingEventArgs

The CacklingEventArgs instance.

OnChangingAmmo(ChangingAmmoEventArgs)

Called before the ammo of an firearm is changed.

public static void OnChangingAmmo(ChangingAmmoEventArgs ev)

Parameters

ev ChangingAmmoEventArgs

The ChangingAmmoEventArgs instance.

OnChangingAttachments(ChangingAttachmentsEventArgs)

Called before item attachments are changed.

public static void OnChangingAttachments(ChangingAttachmentsEventArgs ev)

Parameters

ev ChangingAttachmentsEventArgs

The ChangingAttachmentsEventArgs instance.

OnChangingMicroHIDPickupState(ChangingMicroHIDPickupStateEventArgs)

Called before a MicroHIDPickup state is changed.

public static void OnChangingMicroHIDPickupState(ChangingMicroHIDPickupStateEventArgs ev)

Parameters

ev ChangingMicroHIDPickupStateEventArgs

The ChangingMicroHIDPickupStateEventArgs instance.

OnChargingJailbird(ChargingJailbirdEventArgs)

Called before a Jailbird that is being charged.

public static void OnChargingJailbird(ChargingJailbirdEventArgs ev)

Parameters

ev ChargingJailbirdEventArgs

The ChargingJailbirdEventArgs instance.

OnDisruptorFiring(DisruptorFiringEventArgs)

Called before a ItemType.ParticleDisruptor firing while on the ground. WARNING: Client still receive the shoot sound AND the ammo is still removed. (even if IsAllowed = false).

public static void OnDisruptorFiring(DisruptorFiringEventArgs ev)

Parameters

ev DisruptorFiringEventArgs

The DisruptorFiringEventArgs instance.

OnInspectedItem(InspectedItemEventArgs)

Called before item inspection is started.

public static void OnInspectedItem(InspectedItemEventArgs ev)

Parameters

ev InspectedItemEventArgs

The InspectedItemEventArgs instance.

OnInspectingItem(InspectingItemEventArgs)

Called before item inspection is started.

public static void OnInspectingItem(InspectingItemEventArgs ev)

Parameters

ev InspectingItemEventArgs

The InspectingItemEventArgs instance.

OnJailbirdChargeComplete(JailbirdChargeCompleteEventArgs)

Called after a Jailbird finish charging.

public static void OnJailbirdChargeComplete(JailbirdChargeCompleteEventArgs ev)

Parameters

ev JailbirdChargeCompleteEventArgs

The ChargingJailbirdEventArgs instance.

OnJailbirdStateChanged(JailbirdChangedWearStateEventArgs)

Called after the Jailbird's InventorySystem.Items.Jailbird.JailbirdWearState is changed.

public static void OnJailbirdStateChanged(JailbirdChangedWearStateEventArgs ev)

Parameters

ev JailbirdChangedWearStateEventArgs

The JailbirdChangedWearStateEventArgs instance.

OnJailbirdStateChanging(JailbirdChangingWearStateEventArgs)

Called before the Jailbird's InventorySystem.Items.Jailbird.JailbirdWearState is changed.

public static void OnJailbirdStateChanging(JailbirdChangingWearStateEventArgs ev)

Parameters

ev JailbirdChangingWearStateEventArgs

The JailbirdChangingWearStateEventArgs instance.

OnKeycardInteracting(KeycardInteractingEventArgs)

Called before keycard interacts with a door.

public static void OnKeycardInteracting(KeycardInteractingEventArgs ev)

Parameters

ev KeycardInteractingEventArgs

The KeycardInteractingEventArgs instance.

OnPunching(PunchingEventArgs)

Called before a marshmallow man punches.

public static void OnPunching(PunchingEventArgs ev)

Parameters

ev PunchingEventArgs

The PunchingEventArgs instance.

OnReceivingPreference(ReceivingPreferenceEventArgs)

Called before receiving a preference.

public static void OnReceivingPreference(ReceivingPreferenceEventArgs ev)

Parameters

ev ReceivingPreferenceEventArgs

The ReceivingPreferenceEventArgs instance.

OnSwinging(SwingingEventArgs)

Called before a melee item is swung.

public static void OnSwinging(SwingingEventArgs ev)

Parameters

ev SwingingEventArgs

The SwingingEventArgs instance.

OnUsingRadioPickupBattery(UsingRadioPickupBatteryEventArgs)

Called before radio pickup is draining battery.

public static void OnUsingRadioPickupBattery(UsingRadioPickupBatteryEventArgs ev)

Parameters

ev UsingRadioPickupBatteryEventArgs

The UsingRadioPickupBatteryEventArgs instance.