Skip to content

GlobalBlockStateHandlers ​

final class · pocketmine\world\format\io\GlobalBlockStateHandlers · source

Provides global access to blockstate serializers for all world providers. TODO: Get rid of this. This is necessary to enable plugins to register custom serialize/deserialize handlers, and also because we can't break BC of WorldProvider before PM5. While this is a sucky hack, it provides meaningful benefits for now.

Methods ​

getDeserializer() ​

php
public static function getDeserializer() : \pocketmine\data\bedrock\block\convert\BlockStateToObjectDeserializer

getRegistrar() ​

php
public static function getRegistrar() : \pocketmine\data\bedrock\block\convert\BlockSerializerDeserializerRegistrar

getSerializer() ​

php
public static function getSerializer() : \pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer

getUnknownBlockStateData() ​

php
public static function getUnknownBlockStateData() : \pocketmine\data\bedrock\block\BlockStateData

getUpgrader() ​

php
public static function getUpgrader() : \pocketmine\data\bedrock\block\upgrade\BlockDataUpgrader

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