Skip to content

API reference Obsidian.API.Events

PlayerAttackEntityEventArgs class

public class PlayerAttackEntityEventArgs : EntityEventArgs

In Obsidian.API.

Constructors

public PlayerAttackEntityEventArgs(IPlayer attacker, IEntity entity, IServer server, bool sneaking);

Properties

Attacker

public IPlayer Attacker { get; }

The player who interacted with the entity.

public float Damage { get; }public bool IsCrit { get; }

Sneaking

public bool Sneaking { get; }

True if the player is sneaking when this event is triggered.

On this page