Skip to content

API reference Obsidian.API.World.Structures

PoolJigsaw record struct

A jigsaw of a CustomPoolElement, like a jigsaw block a structure block saves in a template.

public readonly record struct PoolJigsaw : IEquatable<PoolJigsaw>

In Obsidian.API.

Constructors

PoolJigsaw(Vector, string, string, string, string, bool)

public PoolJigsaw(Vector Position, string Orientation, string Name, string Target = "minecraft:empty", string Pool = "minecraft:empty", bool Rollable = true);

A jigsaw of a CustomPoolElement, like a jigsaw block a structure block saves in a template.

Parameters

Position
Where it is from the element's origin, before the element is turned.
Orientation
The minecraft:jigsaw block's orientation, like north_up or up_north: the way it faces, then its top.
Name
The name other pieces' jigsaws target to attach to this one.
Target
The name of the jigsaw a piece attached here attaches by.
Pool
The template pool the piece attached here is picked from.
Rollable
Whether a piece attached here may turn around the jigsaw's facing (vanilla's rollable joint), rather than keep its top lined up (aligned).

Properties

Name

public string Name { get; init; }

The name other pieces' jigsaws target to attach to this one.

Orientation

public string Orientation { get; init; }

The minecraft:jigsaw block's orientation, like north_up or up_north: the way it faces, then its top.

Pool

public string Pool { get; init; }

The template pool the piece attached here is picked from.

Position

public Vector Position { get; init; }

Where it is from the element's origin, before the element is turned.

Rollable

public bool Rollable { get; init; }

Whether a piece attached here may turn around the jigsaw's facing (vanilla's rollable joint), rather than keep its top lined up (aligned).

Target

public string Target { get; init; }

The name of the jigsaw a piece attached here attaches by.

On this page