Skip to content

JigsawInfo 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\template\JigsawInfo · source

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 $z

Methods ​

__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) : bool

moved() ​

php
public function moved(int $dx, int $dy, int $dz) : self

The 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) : self

This jigsaw at a new position with its orientation rotated.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.