Skip to content

Jigsaw 5.47.0 ​

class · pocketmine\block\tile\Jigsaw · source

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 = 256

TAG_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) : void

getFinalState() ​

php
public function getFinalState() : string

getJoint() ​

php
public function getJoint() : string

getName() ​

php
public function getName() : string

getPlacementPriority() ​

php
public function getPlacementPriority() : int

getSelectionPriority() ​

php
public function getSelectionPriority() : int

getTarget() ​

php
public function getTarget() : string

getTargetPool() ​

php
public function getTargetPool() : string

readJigsawData() ​

php
public function readJigsawData(\pocketmine\nbt\tag\CompoundTag $nbt) : bool

Reads 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) : void

setFinalState() ​

php
public function setFinalState(string $finalState) : void

setJoint() ​

php
public function setJoint(string $joint) : void

setName() ​

php
public function setName(string $name) : void

setPlacementPriority() ​

php
public function setPlacementPriority(int $priority) : void

setSelectionPriority() ​

php
public function setSelectionPriority(int $priority) : void

setTarget() ​

php
public function setTarget(string $target) : void

setTargetPool() ​

php
public function setTargetPool(string $targetPool) : void

writeSaveData() protected ​

php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.