Skip to content

BlockStateSerializer ​

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

Implementors of this interface decide how blockstate IDs will be represented as NBT.

Methods ​

serialize() ​

php
public function serialize(int $stateId) : \pocketmine\data\bedrock\block\BlockStateData

Serializes an implementation-defined blockstate ID to NBT for storage.

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