mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +00:00
ItemIdMetaUpgrader: consistency of API method naming
This commit is contained in:
parent
2feb9ca903
commit
94ffef1a99
@ -63,7 +63,7 @@ final class ItemDataUpgrader{
|
||||
$blockStateData = null;
|
||||
}
|
||||
|
||||
[$newNameId, $newMeta] = $this->idMetaUpgrader->upgradeStringIdMeta($rawNameId, $meta);
|
||||
[$newNameId, $newMeta] = $this->idMetaUpgrader->upgrade($rawNameId, $meta);
|
||||
|
||||
//TODO: this won't account for spawn eggs from before 1.16.100 - perhaps we're lucky and they just left the meta in there anyway?
|
||||
|
||||
@ -136,7 +136,7 @@ final class ItemDataUpgrader{
|
||||
$blockStateData = null;
|
||||
}
|
||||
|
||||
[$newNameId, $newMeta] = $this->idMetaUpgrader->upgradeStringIdMeta($rawNameId, $meta);
|
||||
[$newNameId, $newMeta] = $this->idMetaUpgrader->upgrade($rawNameId, $meta);
|
||||
|
||||
//TODO: this won't account for spawn eggs from before 1.16.100 - perhaps we're lucky and they just left the meta in there anyway?
|
||||
|
||||
|
@ -60,7 +60,7 @@ final class ItemIdMetaUpgrader{
|
||||
/**
|
||||
* @phpstan-return array{string, int}
|
||||
*/
|
||||
public function upgradeStringIdMeta(string $id, int $meta) : array{
|
||||
public function upgrade(string $id, int $meta) : array{
|
||||
$newId = $id;
|
||||
$newMeta = $meta;
|
||||
foreach($this->idMetaUpgradeSchemas as $schema){
|
||||
|
Loading…
x
Reference in New Issue
Block a user