Skip to content

API reference Obsidian.API.World.Features

GeneratedEntity record

An entity placed by world generation (end crystals, structure mobs...), spawned once its chunk is complete.

public sealed record GeneratedEntity : IEquatable<GeneratedEntity>

In Obsidian.API.

Constructors

GeneratedEntity(string, VectorD, float, float)

public GeneratedEntity(string Type, VectorD Position, float Yaw = 0f, float Pitch = 0f);

An entity placed by world generation (end crystals, structure mobs...), spawned once its chunk is complete.

Parameters

Type
The entity type id, e.g. minecraft:end_crystal.
Position
Where the entity is spawned.
Yaw
The entity's yaw, in degrees.
Pitch
The entity's pitch, in degrees.

Properties

Data

public NbtCompound Data { get; init; }

Vanilla's saved entity fields besides the id, position and rotation, e.g. Invulnerable.

Pitch

public float Pitch { get; init; }

The entity's pitch, in degrees.

Position

public VectorD Position { get; init; }

Where the entity is spawned.

Type

public string Type { get; init; }

The entity type id, e.g. minecraft:end_crystal.

Yaw

public float Yaw { get; init; }

The entity's yaw, in degrees.

On this page