getEntries() as $entry){ if($entry->getNumericId() < 256){ //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'