Skip to content

ItemIdMetaUpgrader ​

final class · pocketmine\data\bedrock\item\upgrade\ItemIdMetaUpgrader · source

Upgrades old item string IDs and metas to newer ones according to the given schemas.

Methods ​

__construct() ​

php
public function __construct(array $idMetaUpgradeSchemas)

addSchema() ​

php
public function addSchema(\pocketmine\data\bedrock\item\upgrade\ItemIdMetaUpgradeSchema $schema) : void

getSchemas() ​

php
public function getSchemas() : array

upgrade() ​

php
public function upgrade(string $id, int $meta) : array

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