Skip to content

API reference Obsidian.API.Entities

EntityDamage class

Damage about to be dealt to an entity, which IEntityBehavior.HurtAsync may change or cancel.

public sealed class EntityDamage

In Obsidian.API.

Constructors

public EntityDamage();

Properties

Amount

public float Amount { get; set; }

How much damage the entity takes, before its armour and absorption.

Cancelled

public bool Cancelled { get; set; }

Whether the entity takes no damage at all.

public required DamageSource Source { get; init; }

On this page