PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\data\bedrock\block\BlockStateSerializer Interface Reference
+ Inheritance diagram for pocketmine\data\bedrock\block\BlockStateSerializer:
+ Collaboration diagram for pocketmine\data\bedrock\block\BlockStateSerializer:

Public Member Functions

 serialize (int $stateId)
 

Detailed Description

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

@phpstan-type BlockStateId int

Definition at line 31 of file BlockStateSerializer.php.

Member Function Documentation

◆ serialize()

pocketmine\data\bedrock\block\BlockStateSerializer::serialize ( int $stateId)

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

@phpstan-param BlockStateId $stateId

Exceptions
BlockStateSerializeException

Implemented in pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer.


The documentation for this interface was generated from the following file: