|
PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
|
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) | |
Definition at line 39 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 53 of file BlockStateToObjectDeserializer.php.
| pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::deserializeBlock | ( | BlockStateData | $blockStateData | ) |
| BlockStateDeserializeException |
Definition at line 124 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 85 of file BlockStateToObjectDeserializer.php.
| 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.
| pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapLog | ( | string | $unstrippedId, |
| string | $strippedId, | ||
| \Closure | $getBlock ) |
Definition at line 118 of file BlockStateToObjectDeserializer.php.
| pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSimple | ( | string | $id, |
| \Closure | $getBlock ) |
Definition at line 93 of file BlockStateToObjectDeserializer.php.
| pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapSlab | ( | string | $singleId, |
| string | $doubleId, | ||
| \Closure | $getBlock ) |
Definition at line 101 of file BlockStateToObjectDeserializer.php.
| pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer::mapStairs | ( | string | $id, |
| \Closure | $getBlock ) |
Definition at line 110 of file BlockStateToObjectDeserializer.php.