How netcraft-dev/netcraft works
NetCraft is a C# reimplementation of the Minecraft kernel and game layer. A player-facing workflow enters through the client, exchanges protocol packets, and presents the resulting game state; the README also describes a decoupled tick/render model. The repository includes supporting world storage, registries, data formats and upgrades, commands, resources, GPU rendering, and mod loading. Edges reflect README-documented relationships; where the provided excerpts and index do not establish runtime wiring, links are dashed and marked unverified.
Main entry points: GameBootstrap.cs Game runtime · MinecraftClient.cs Client runtime · RegionFileStorage.cs Chunk and world storage · ScreenManager.cs Screens and HUD
Components 19
Client runtime
- Client runtime
NetCraft.Client/Client/MinecraftClient.cs - Screens and HUD
NetCraft.Client/Gui/ScreenManager.cs - Client networking
NetCraft.Client/Network/ClientConnector.cs - Client packet handling
NetCraft.Client/Network/Protocol/Game/ClientGamePacketListenerImpl.cs
Game and world
- Game runtime
NetCraft.Game/Bootstrap/GameBootstrap.cs - World generation
NetCraft.Game/Data/TerrainProvider.cs - Chunk and world storage
NetCraft.Storage/RegionFileStorage.cs - Lighting engine
NetCraft.Storage/Light/LightEngine.cs - Server runtime
NetCraft.ServerExe/Program.cs
Kernel services
- Registries
NetCraft.Registry/Registry.cs - NBT data
NetCraft.Nbt/CompoundTag.cs - Codecs
NetCraft.Codec/Codec.cs - Data upgrades
NetCraft.DataFixer/DataFixerUpper.cs - Command dispatch
NetCraft.Commands/CommandDispatcher.cs - Resource packs
NetCraft.Resources/Pack.cs
Rendering
- GPU and GUI renderer
NetCraft.Gpu/Vulkan/VulkanRenderPipeline.cs - Client world rendering
NetCraft.Client/Client/Render/World/LevelRenderer.cs
Extensions
- Mod loading
NetCraft.ModLoader/ModManager.cs
Other components
- Player
Connections 20
- Player → Screens and HUD: uses
- Screens and HUD → Client runtime: interacts with
NetCraft.Client/Gui/ScreenManager.cs - Client runtime → Client networking: connects through
- Client networking → Client packet handling: dispatches packets
- Client runtime → Game runtime: runs game
- Game runtime → World generation: generates terrain
- Game runtime → Chunk and world storage: uses chunk pipeline
- Chunk and world storage → Lighting engine: coordinates lighting
- Game runtime → Registries: uses registries
- Chunk and world storage → NBT data: stores NBT
NetCraft.Storage/RegionFileStorage.cs - NBT data → Codecs: bridges with NbtOps
NetCraft.Nbt/CompoundTag.cs - Chunk and world storage → Data upgrades: upgrades saved data
- Game runtime → Command dispatch: provides commands
- Game runtime → Resource packs: loads resources
- Client runtime → Client world rendering: renders world
- Client world rendering → GPU and GUI renderer: submits rendering
- Screens and HUD → GPU and GUI renderer: renders GUI
- Client networking → Server runtime: communicates with
- Game runtime → Mod loading: supports runtime mods
- Player → Command dispatch: invokes