PocketMine-MP 5.28.3 git-a4ac28592c6c5f5876927aa2a140b65dad63d786
|
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) | |
Definition at line 69 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::__construct | ( | ) |
Definition at line 83 of file BlockStateToObjectDeserializer.php.
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
BlockStateDeserializeException |
Implements pocketmine\data\bedrock\block\BlockStateDeserializer.
Definition at line 98 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::deserializeBlock | ( | BlockStateData | $blockStateData | ) |
BlockStateDeserializeException |
Definition at line 1876 of file BlockStateToObjectDeserializer.php.
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 130 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::map | ( | string | $id, |
\Closure | $c ) |
@phpstan-param \Closure(Reader) : Block $c
Definition at line 119 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapLog | ( | string | $unstrippedId, |
string | $strippedId, | ||
\Closure | $getBlock ) |
@phpstan-param \Closure() : Wood $getBlock
Definition at line 155 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSimple | ( | string | $id, |
\Closure | $getBlock ) |
@phpstan-param \Closure() : Block $getBlock
Definition at line 135 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSlab | ( | string | $singleId, |
string | $doubleId, | ||
\Closure | $getBlock ) |
@phpstan-param \Closure(Reader) : Slab $getBlock
Definition at line 142 of file BlockStateToObjectDeserializer.php.
pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapStairs | ( | string | $id, |
\Closure | $getBlock ) |
@phpstan-param \Closure() : Stair $getBlock
Definition at line 150 of file BlockStateToObjectDeserializer.php.