Skip to content

API reference Obsidian.API.Entities

EntityHit class

What a projectile hit.

public sealed class EntityHit

In Obsidian.API.

Constructors

public EntityHit();

Properties

Block

public Vector? Block { get; init; }

The block it hit, or null when it hit an entity.

Entity

public IEntity Entity { get; init; }

The living entity it hit, or null when it hit a block.

Owner

public IEntity Owner { get; init; }

The entity that shot the projectile, if any.

Position

public required VectorD Position { get; init; }

Where it hit.

On this page