Skip to content

BlockStateDeserializer ​

interface · pocketmine\data\bedrock\block\BlockStateDeserializer · source

Implementors of this interface decide how a block should be deserialized and represented at runtime. This is used by world providers when decoding blockstates into block IDs.

Methods ​

deserialize() ​

php
public function deserialize(\pocketmine\data\bedrock\block\BlockStateData $stateData) : int

Deserializes blockstate NBT into an implementation-defined blockstate ID, for runtime paletted storage.

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