How starling-client/starling works
Starling is an Android-native Minecraft: Java Edition port, while this fork also develops Horizon’s mod API. The player-facing path is obtaining game files, preparing resources, then playing through the client; the modding path adds mod loading and runtime hooks into game behavior and rendering. The graph preserves major README capabilities and central indexed modules. Most implementation wiring was not sampled, so edges without visible call evidence are limited to README-documented relationships.
Main entry points: horizon-client/src Client core · horizon-mod-host Mod host · horizon-mod-vocab/src Mod vocabulary · gfx.rs GPU renderer
Components 24
Android gameplay
- Game runtime
crates/horizon-game/src/main.rs - Client core
crates/horizon-client/src - Crafting
crates/horizon-client/src/crafting.rs - Entity behavior
crates/horizon-client/src/entity_nbt.rs - World generation
crates/horizon-port-pack/src/worldgen.rs - Touch controls
crates/horizon-client-render/src/android_controls.rs - Chat interface
crates/horizon-client-render/src/chat.rs - Player settings
crates/horizon-client-render/src/settings.rs
Mod platform
- Mod loading
crates/horizon-mod-runtime - Mod host
crates/horizon-mod-host - Mod vocabulary
crates/horizon-mod-vocab/src - Parts and hooks
crates/horizon-mod-vocab/src/parts/mod.rs - Item storage
crates/horizon-mod-vocab/src/item/storage.rs - Content registry
crates/horizon-mod-vocab/src/content/registry_keys.rs - Mod render pipelines
crates/horizon-client-render/src/gfx/mod_pipelines.rs - WebAssembly mods
crates/horizon-mod-wasm
Game preparation
- Game setup
crates/horizon-prepare/src/main.rs - Pack pipeline
crates/horizon-port-pack/src/pipeline.rs
Client rendering
- Graphics settings
crates/horizon-client-render/src/graphics.rs - GPU renderer
crates/horizon-client-render/src/gfx.rs - HUD
crates/horizon-client-render/src/hud.rs - Audio output
crates/horizon-client-render/src/audio.rs - Sound engine
crates/horizon-client-render/src/sound_engine.rs
Other components
- Player
Connections 24
- Player → Game setup: prepares game
README.md - Game setup → Game runtime: enables play
- Player → Game runtime: plays
README.md - Game runtime → Client core: runs client
- Client core → Crafting: supports crafting
crates/horizon-client/src/merchant.rs - Client core → Entity behavior: updates entities
crates/horizon-client/src/save.rs - Client core → World generation: generates worlds
README.md - Player → Touch controls: uses controls
README.md - Player → Chat interface: sends commands
README.md - Player → Player settings: changes options
README.md - Player settings → Graphics settings: configures graphics
crates/horizon-client-render/src/settings.rs - Client core → GPU renderer: renders game
- GPU renderer → HUD: draws HUD
- GPU renderer → Audio output: outputs audio
- Audio output → Sound engine: uses engine
- Player → Mod loading: loads mods
README.md - Mod loading → Mod host: initializes host
README.md - Mod host → Mod vocabulary: exposes API
README.md - Mod vocabulary → Parts and hooks: provides parts
crates/horizon-mod-vocab/src/parts/mod.rs - Parts and hooks → Content registry: resolves attachments
crates/horizon-mod-vocab/src/content/registry_keys.rs - Mod vocabulary → Item storage: provides storage
crates/horizon-mod-vocab/src/item/storage.rs - Mod host → WebAssembly mods: supports mods
README.md - Mod host → Mod render pipelines: registers pipelines
crates/horizon-client-render/src/gfx/mod_pipelines.rs - Pack pipeline → World generation: prepares worldgen
crates/horizon-port-pack/src/pipeline.rs