BlockStateToObjectDeserializer
Implements BlockStateDeserializer
Methods
deserialize()
php
public function deserialize(\pocketmine\data\bedrock\block\BlockStateData $stateData) : intdeserializeBlock()
php
public function deserializeBlock(\pocketmine\data\bedrock\block\BlockStateData $blockStateData) : \pocketmine\block\BlockgetDeserializerForId()
php
public function getDeserializerForId(string $id) : ?\ClosureReturns 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.
map()
php
public function map(string $id, \Closure $c) : voidmapLog()
php
public function mapLog(string $unstrippedId, string $strippedId, \Closure $getBlock) : voidDeprecated
Deprecated.
mapSimple()
php
public function mapSimple(string $id, \Closure $getBlock) : voidDeprecated
Deprecated.
mapSlab()
php
public function mapSlab(string $singleId, string $doubleId, \Closure $getBlock) : voidDeprecated
Deprecated.
mapStairs()
php
public function mapStairs(string $id, \Closure $getBlock) : voidDeprecated
Deprecated.
