55 if($tag->getTag(
"name") !== null && $tag->getTag(
"val") !== null){
57 $id = $tag->getString(
"name");
58 $data = $tag->getShort(
"val");
60 $blockStateData = $this->upgradeStringIdMeta($id, $data);
63 $blockStateData = BlockStateData::fromNbt($tag);
66 return $this->blockStateUpgrader->upgrade($blockStateData);