JigsawInfo 5.46.0
A jigsaw block of a template (StructureTemplate.JigsawBlockInfo): position (template-relative, or in the world once transformed), front and top directions of its orientation, and its jigsaw data.
Properties
$finalState
php
public readonly string $finalState$front
php
public readonly int $front$name
php
public readonly string $name$placementPriority
php
public readonly int $placementPriority$pool
php
public readonly string $pool$rollable
php
public readonly bool $rollable$selectionPriority
php
public readonly int $selectionPriority$target
php
public readonly string $target$top
php
public readonly int $top$x
php
public readonly int $x$y
php
public readonly int $y$z
php
public readonly int $zMethods
__construct()
php
public function __construct(int $x, int $y, int $z, int $front, int $top, string $name, string $target, string $pool, string $finalState, bool $rollable, int $placementPriority, int $selectionPriority)canAttach()
php
public function canAttach(\pocketmine\world\generator\vanilla\structure\template\JigsawInfo $other) : boolmoved()
php
public function moved(int $dx, int $dy, int $dz) : selfThe same jigsaw at a position offset by the given amounts (directions unchanged).
transformed()
php
public function transformed(int $x, int $y, int $z, int $rotation) : selfThis jigsaw at a new position with its orientation rotated.
