Table of Contents

Class PunchingEventArgs

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

Contains all information before a marshmallow man punches.

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

Constructors

PunchingEventArgs(MarshmallowItem, bool)

Initializes a new instance of the PunchingEventArgs class.

public PunchingEventArgs(MarshmallowItem marshmallow, bool isAllowed = true)

Parameters

marshmallow MarshmallowItem

The marshmallow item of the player attacking.

isAllowed bool

Whether the player is allowed to punch.

Properties

IsAllowed

Gets or sets a value indicating whether the punch is allowed.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

Marshmallow

Gets the marshmallow item of the player punching.

public Marshmallow Marshmallow { get; }

Property Value

Marshmallow

Player

Gets the player punching.

public Player Player { get; }

Property Value

Player