Jigsaw 5.47.0
Extends Spawnable
Block entity of a jigsaw block (Bedrock ID "JigsawBlock", same fields as BDS 1.26.52): the name of this connection, the name of the connection it attaches to, the template pool to pick the next piece from, the block it turns into once the structure is generated, the joint type (vertical connections: "rollable" or "aligned") and the placement and selection priorities.
Constants
DEFAULT_FINAL_STATE
php
public const DEFAULT_FINAL_STATE = "minecraft:air"EMPTY_NAME
php
public const EMPTY_NAME = "minecraft:empty"JOINT_ALIGNED
php
public const JOINT_ALIGNED = "aligned"JOINT_ROLLABLE
php
public const JOINT_ROLLABLE = "rollable"MAX_TEXT_LENGTH
php
public const MAX_TEXT_LENGTH = 256TAG_FINAL_STATE
php
public const TAG_FINAL_STATE = "final_state"TAG_JOINT
php
public const TAG_JOINT = "joint"TAG_NAME
php
public const TAG_NAME = "name"TAG_PLACEMENT_PRIORITY
php
public const TAG_PLACEMENT_PRIORITY = "placement_priority"TAG_SELECTION_PRIORITY
php
public const TAG_SELECTION_PRIORITY = "selection_priority"TAG_TARGET
php
public const TAG_TARGET = "target"TAG_TARGET_POOL
php
public const TAG_TARGET_POOL = "target_pool"Methods
addAdditionalSpawnData() protected
php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidgetFinalState()
php
public function getFinalState() : stringgetJoint()
php
public function getJoint() : stringgetName()
php
public function getName() : stringgetPlacementPriority()
php
public function getPlacementPriority() : intgetSelectionPriority()
php
public function getSelectionPriority() : intgetTarget()
php
public function getTarget() : stringgetTargetPool()
php
public function getTargetPool() : stringreadJigsawData()
php
public function readJigsawData(\pocketmine\nbt\tag\CompoundTag $nbt) : boolReads the fields present in the given data (block entity data, or what the jigsaw screen sends). Invalid values are ignored. Returns whether anything changed.
readSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetFinalState()
php
public function setFinalState(string $finalState) : voidsetJoint()
php
public function setJoint(string $joint) : voidsetName()
php
public function setName(string $name) : voidsetPlacementPriority()
php
public function setPlacementPriority(int $priority) : voidsetSelectionPriority()
php
public function setSelectionPriority(int $priority) : voidsetTarget()
php
public function setTarget(string $target) : voidsetTargetPool()
php
public function setTargetPool(string $targetPool) : voidwriteSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void