Table of Contents

Class JailbirdChangingWearStateEventArgs

Namespace
Exiled.Events.EventArgs.Item
Assembly
Exiled.Events.dll

Contains all information before a InventorySystem.Items.Jailbird.JailbirdItem changes its state.

public class JailbirdChangingWearStateEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
JailbirdChangingWearStateEventArgs
Implements
Inherited Members
Extension Methods

Constructors

JailbirdChangingWearStateEventArgs(ItemBase, JailbirdWearState, JailbirdWearState)

Initializes a new instance of the JailbirdChangingWearStateEventArgs class.

public JailbirdChangingWearStateEventArgs(ItemBase jailbird, JailbirdWearState newWearState, JailbirdWearState oldWearState)

Parameters

jailbird ItemBase

The Jailbird item whose state is changing.

newWearState JailbirdWearState

The InventorySystem.Items.Jailbird.JailbirdWearState the Jailbird is attempting to switch to.

oldWearState JailbirdWearState

The current InventorySystem.Items.Jailbird.JailbirdWearState the Jailbird is at.

Properties

IsAllowed

Gets or sets a value indicating whether the Jailbird is allowed to change its InventorySystem.Items.Jailbird.JailbirdWearState.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item associated with the Jailbird.

public Item Item { get; }

Property Value

Item

Jailbird

Gets the Jailbird that atempted to change its state.

public Jailbird Jailbird { get; }

Property Value

Jailbird

NewWearState

Gets or sets the new InventorySystem.Items.Jailbird.JailbirdWearState of the Jailbird.

public JailbirdWearState NewWearState { get; set; }

Property Value

JailbirdWearState

OldWearState

Gets the old InventorySystem.Items.Jailbird.JailbirdWearState of the Jailbird.

public JailbirdWearState OldWearState { get; }

Property Value

JailbirdWearState

Player

Gets the Player who owns the Jailbird.

public Player Player { get; }

Property Value

Player