PocketMine-MP 5.44.4 git-bc94a0da0c87abe7eb99d229a9ec672b3c405d11
Loading...
Searching...
No Matches
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer Class Reference
+ Inheritance diagram for pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer:
+ Collaboration diagram for pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer:

Public Member Functions

 deserialize (BlockStateData $stateData)
 
 deserializeBlock (BlockStateData $blockStateData)
 
 getDeserializerForId (string $id)
 
 map (string $id, \Closure $c)
 

Detailed Description

Definition at line 35 of file BlockStateToObjectDeserializer.php.

Member Function Documentation

◆ deserialize()

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

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

@phpstan-return BlockStateId

Exceptions
BlockStateDeserializeException

Implements pocketmine\data\bedrock\block\BlockStateDeserializer.

Definition at line 49 of file BlockStateToObjectDeserializer.php.

◆ deserializeBlock()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::deserializeBlock ( BlockStateData $blockStateData)
Exceptions
BlockStateDeserializeException

Definition at line 86 of file BlockStateToObjectDeserializer.php.

◆ getDeserializerForId()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::getDeserializerForId ( string $id)

Returns the existing data deserializer for the given ID, or null if none exists. This may be useful if you need to override a deserializer, but still want to be able to fall back to the original.

@phpstan-return ?\Closure(Reader) : Block

Definition at line 81 of file BlockStateToObjectDeserializer.php.

◆ map()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::map ( string $id,
\Closure $c )

@phpstan-param \Closure(Reader) : Block $c

Definition at line 70 of file BlockStateToObjectDeserializer.php.


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