Skip to content

BlockStateToObjectDeserializer ​

final class · pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer · source

Implements BlockStateDeserializer

Methods ​

deserialize() ​

php
public function deserialize(\pocketmine\data\bedrock\block\BlockStateData $stateData) : int

deserializeBlock() ​

php
public function deserializeBlock(\pocketmine\data\bedrock\block\BlockStateData $blockStateData) : \pocketmine\block\Block

getDeserializerForId() ​

php
public function getDeserializerForId(string $id) : ?\Closure

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.

map() ​

php
public function map(string $id, \Closure $c) : void

mapLog() ​

php
public function mapLog(string $unstrippedId, string $strippedId, \Closure $getBlock) : void

Deprecated

Deprecated.

mapSimple() ​

php
public function mapSimple(string $id, \Closure $getBlock) : void

Deprecated

Deprecated.

mapSlab() ​

php
public function mapSlab(string $singleId, string $doubleId, \Closure $getBlock) : void

Deprecated

Deprecated.

mapStairs() ​

php
public function mapStairs(string $id, \Closure $getBlock) : void

Deprecated

Deprecated.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.