getEntries() as $entry){ if($entry->getStringId() === "minecraft:air" || $blockItemIdMap->lookupBlockId($entry->getStringId()) !== null){ //blockitems are serialized via BlockStateSerializer continue; } $ids[$entry->getStringId()] = $entry->getStringId(); } asort($ids, SORT_STRING); $file = ErrorToExceptionHandler::trapAndRemoveFalse(fn() => fopen(dirname(__DIR__) . '/src/data/bedrock/item/ItemTypeNames.php', 'wb')); fwrite($file, <<<'HEADER'