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

Public Member Functions

 deserialize (BlockStateData $stateData)
 

Detailed Description

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.

@phpstan-type BlockStateId int

Definition at line 32 of file BlockStateDeserializer.php.

Member Function Documentation

◆ deserialize()

pocketmine\data\bedrock\block\BlockStateDeserializer::deserialize ( BlockStateData $stateData)

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

@phpstan-return BlockStateId

Exceptions
BlockStateDeserializeException

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


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