Skip to content

BlockStateUpgradeSchemaUtils ​

final class · pocketmine\data\bedrock\block\upgrade\BlockStateUpgradeSchemaUtils · source

Methods ​

describe() ​

php
public static function describe(\pocketmine\data\bedrock\block\upgrade\BlockStateUpgradeSchema $schema) : string

fromJsonModel() ​

php
public static function fromJsonModel(\pocketmine\data\bedrock\block\upgrade\model\BlockStateUpgradeSchemaModel $model, int $schemaId) : \pocketmine\data\bedrock\block\upgrade\BlockStateUpgradeSchema

loadSchemaFromString() ​

php
public static function loadSchemaFromString(string $raw, int $schemaId) : \pocketmine\data\bedrock\block\upgrade\BlockStateUpgradeSchema

loadSchemas() ​

php
public static function loadSchemas(string $path, int $maxSchemaId) : array

Returns a list of schemas ordered by schema ID. Oldest schemas appear first.

tagToJsonModel() ​

php
public static function tagToJsonModel(\pocketmine\nbt\tag\Tag $tag) : \pocketmine\data\bedrock\block\upgrade\model\BlockStateUpgradeSchemaModelTag

toJsonModel() ​

php
public static function toJsonModel(\pocketmine\data\bedrock\block\upgrade\BlockStateUpgradeSchema $schema) : \pocketmine\data\bedrock\block\upgrade\model\BlockStateUpgradeSchemaModel

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