PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
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)
 
 mapLog (string $unstrippedId, string $strippedId, \Closure $getBlock)
 
 mapSimple (string $id, \Closure $getBlock)
 
 mapSlab (string $singleId, string $doubleId, \Closure $getBlock)
 
 mapStairs (string $id, \Closure $getBlock)
 

Detailed Description

Definition at line 39 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 53 of file BlockStateToObjectDeserializer.php.

◆ deserializeBlock()

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

Definition at line 124 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 85 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 74 of file BlockStateToObjectDeserializer.php.

◆ mapLog()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapLog ( string $unstrippedId,
string $strippedId,
\Closure $getBlock )
Deprecated
@phpstan-param \Closure() : Wood $getBlock

Definition at line 118 of file BlockStateToObjectDeserializer.php.

◆ mapSimple()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSimple ( string $id,
\Closure $getBlock )
Deprecated
@phpstan-param \Closure() : Block $getBlock

Definition at line 93 of file BlockStateToObjectDeserializer.php.

◆ mapSlab()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSlab ( string $singleId,
string $doubleId,
\Closure $getBlock )
Deprecated
@phpstan-param \Closure(Reader) : Slab $getBlock

Definition at line 101 of file BlockStateToObjectDeserializer.php.

◆ mapStairs()

pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapStairs ( string $id,
\Closure $getBlock )
Deprecated
@phpstan-param \Closure() : Stair $getBlock

Definition at line 110 of file BlockStateToObjectDeserializer.php.


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