Skip to content

API reference Obsidian.API.World.Structures

BlockArea record struct

A box of blocks, from BlockArea.Min to BlockArea.Max inclusive.

public readonly record struct BlockArea : IEquatable<BlockArea>

In Obsidian.API.

Constructors

BlockArea(Vector, Vector)

public BlockArea(Vector Min, Vector Max);

A box of blocks, from BlockArea.Min to BlockArea.Max inclusive.

Properties

public Vector Max { get; init; }public Vector Min { get; init; }

Methods

Contains(Vector)

public bool Contains(Vector position);

Whether position is in the box.

On this page