ItemIdMetaUpgrader
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) : voidgetSchemas()
php
public function getSchemas() : arrayupgrade()
php
public function upgrade(string $id, int $meta) : array