How memoxiiii/bridger works
Bridger is a native Java–Bedrock Minecraft structure and world converter, with a CLI for format listing, inspection, conversion, placement, and reports. The principal workflow is CLI request → conversion pipeline → format-specific read and write, with translation and placement where needed. The README documents the supported format pairs and world-placement behavior; sampled pipeline excerpts show Bedrock-world integration, while unsampled conversion branches are represented only where the README establishes them. The desktop shell is currently an empty window, not a conversion UI.
Main entry points: pipeline.cpp Conversion pipeline · main.cpp CLI commands · convert.cpp Convert command · info.cpp Info command
Components 22
Command-line interface
- CLI commands
src/cli/main.cpp - Convert command
src/cli/commands/convert.cpp - Info command
src/cli/commands/info.cpp - Desktop shell
src/app/app.cpp
Conversion workflow
- Conversion pipeline
src/convert/pipeline.cpp - Placement policy
src/convert/placement.cpp
Format handling
- Format catalog
src/formats/format.cpp - Java structure formats
src/formats/java/sponge_schem.cpp - Java world formats
src/formats/java/anvil/java_world.cpp - Bedrock structure format
src/formats/bedrock/mcstructure.cpp - Bedrock world format
src/formats/bedrock/mcworld/bedrock_world.cpp - Bedrock world reader
src/formats/bedrock/mcworld/bedrock_world_reader.cpp - Existing-world placement
src/formats/bedrock/mcworld/place_into_world.cpp
State translation
- Conversion reports
src/translate/conversion_report.cpp - Mapping data
src/translate/mapping_data.cpp - Java-to-Bedrock translation
src/translate/translator.cpp - Bedrock-to-Java translation
src/translate/reverse_translator.cpp - Block entity translation
src/translate/block_entity_translator.cpp - Translation tables
src/translate/tables.hpp
Core and I/O
- Structure model
src/core/structure.cpp - NBT handling
src/io/nbt/nbt_view.cpp
Other components
- CLI user
Connections 24
- CLI user → CLI commands: invokes
README.md - CLI commands → Convert command: dispatches
src/cli/main.cpp - CLI commands → Info command: dispatches
src/cli/main.cpp - CLI commands → Format catalog: lists formats
src/cli/main.cpp - Convert command → Conversion pipeline: runs conversion
src/cli/commands/convert.cpp - Info command → Conversion pipeline: uses helpers
src/cli/commands/info.cpp - Conversion pipeline → Java structure formats: reads or writes
README.md - Conversion pipeline → Java world formats: reads or writes
README.md - Conversion pipeline → Bedrock structure format: reads or writes
README.md - Conversion pipeline → Bedrock world format: reads or writes
src/convert/pipeline.cpp - Conversion pipeline → Bedrock world reader: reads world
src/convert/pipeline.cpp - Conversion pipeline → Existing-world placement: places structure
src/convert/pipeline.cpp - Conversion pipeline → Placement policy: applies options
- Conversion pipeline → Java-to-Bedrock translation: translates states
- Conversion pipeline → Bedrock-to-Java translation: translates states
- Conversion pipeline → Block entity translation: translates block entities
- Conversion pipeline → Conversion reports: collects issues
- Java-to-Bedrock translation → Mapping data: uses mappings
- Bedrock-to-Java translation → Mapping data: uses mappings
- Block entity translation → Translation tables: uses tables
src/translate/block_entity_translator.cpp - Java structure formats → Structure model: loads structure
README.md - Bedrock structure format → Structure model: loads structure
README.md - Bedrock world format → NBT handling: uses NBT
- Desktop shell → CLI user: opens window
src/app/app.cpp