How anuken/mindustry works
Mindustry is a Java automation tower-defense RTS. Players interact through desktop or mobile clients, build and command units and structures in a tile-based world, and can play campaign content or multiplayer; the repository also includes map editing, programmable logic, saves, and mod support. The graph groups these product capabilities and runtime layers. Relationships are limited to README statements and SOURCE INDEX references; unsampled implementations are represented at supported directory paths, without asserting unverified call sequences.
Main entry points: ClientLauncher.java Client runtime · ServerControl.java Server control · Tile.java World and tiles · Mods.java Mods
Components 22
Clients and servers
- Desktop launcher
desktop/src/mindustry/desktop/DesktopLauncher.java - Client runtime
core/src/mindustry/ClientLauncher.java - Player controls
core/src/mindustry/input/InputHandler.java - Server control
server/src/mindustry/server/ServerControl.java - Network transport
core/src/mindustry/net/Net.java - Client networking
core/src/mindustry/core/NetClient.java
World and gameplay
- Runtime registry
core/src/mindustry/Vars.java - World and tiles
core/src/mindustry/world/Tile.java - Structures
core/src/mindustry/world/Block.java - Units and AI
core/src/mindustry/entities/units/AIController.java - Game rules
core/src/mindustry/game/Rules.java
Content and customization
- Game content
core/src/mindustry/content/Blocks.java - Planets and sectors
core/src/mindustry/type/Planet.java - Mods
core/src/mindustry/mod/Mods.java - Programmable logic
core/src/mindustry/logic - Map editor
core/src/mindustry/editor - Maps and generation
core/src/mindustry/maps
Game services
- Save system
core/src/mindustry/game/Saves.java - Achievements and stats
core/src/mindustry/service/GameService.java - Game events
core/src/mindustry/game/EventType.java - Effects and rendering
core/src/mindustry/entities/Effect.java
Other components
- Player
Connections 23
- Player → Desktop launcher: launches
README.md - Desktop launcher → Client runtime: starts
desktop/src/mindustry/desktop/DesktopLauncher.java - Player → Player controls: controls
README.md - Player controls → World and tiles: edits
core/src/mindustry/input/InputHandler.java - Server control → Maps and generation: loads
server/src/mindustry/server/ServerControl.java - Server control → Save system: uses
server/src/mindustry/server/ServerControl.java - Server control → Mods: loads
server/src/mindustry/server/ServerControl.java - Server control → Network transport: uses
server/src/mindustry/server/ServerControl.java - Client networking → Network transport: uses
core/src/mindustry/core/NetClient.java - Client runtime → Network transport: uses
core/src/mindustry/ClientLauncher.java - Client runtime → Mods: loads
core/src/mindustry/ClientLauncher.java - Client runtime → Maps and generation: loads
core/src/mindustry/ClientLauncher.java - Client runtime → Save system: uses
core/src/mindustry/ClientLauncher.java - Runtime registry → Mods: registers
core/src/mindustry/Vars.java - Game content → World and tiles: defines
core/src/mindustry/world/Tile.java - World and tiles → Structures: hosts
core/src/mindustry/world/Tile.java - Units and AI → World and tiles: queries
core/src/mindustry/entities/units/AIController.java - Units and AI → Game rules: uses
- Planets and sectors → Maps and generation: generates
- Map editor → Maps and generation: edits
- Mods → Game content: adds
- Achievements and stats → Game events: listens
core/src/mindustry/service/GameService.java - Game events → Effects and rendering: triggers