# ohyfmodmc/netease-bujidao-baiduan-launcher architecture

> Architecture diagram of the GitHub repository ohyfmodmc/netease-bujidao-baiduan-launcher, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ohyfmodmc/netease-bujidao-baiduan-launcher
- Repository: https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher

## Overview

This repository combines a documented Minecraft launcher workflow with reusable launcher, protocol, and plugin components. The primary path is account login and character selection in FantnelCli, runtime game-argument generation, Java launch, and automatic connection through a local proxy; the CLI also provides skin/mod services. The README documents key runtime links, while source excerpts show the CLI, plugin/packet managers, account state, and configuration behavior. Other server and launcher capabilities are represented where the tree and source index support them; unsampled implementation links are omitted or marked unverified.

Main entry points: [`_build/Nirvana.Cli/Program.cs`](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/Program.cs) (Fantnel CLI), [`_build/Nirvana.Development/Connection/GameConnection.cs`](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Connection/GameConnection.cs) (Local Game Proxy), [`_build/Nirvana.Development/Manager/PluginManager.cs`](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/PluginManager.cs) (Plugin Loading), [`_build/Fantnel/Servlet/GameController/GameAccountController.cs`](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/GameController/GameAccountController.cs) (Account Web API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and Accounts"]
  node_cli["Fantnel CLI<br/>[Program.cs]"]
  node_account[("Account State<br/>[InfoManager.cs]")]
  node_account_api["Launcher Account APIs<br/>[NPFLauncher.cs]"]
  node_native_args["Native Args<br/>[Program.cs]"]
end

subgraph group_game["Game Connectivity"]
  node_java_game["Minecraft Game"]
  node_proxy["Local Game Proxy<br/>[GameConnection.cs]"]
  node_packet_manager["Packet Dispatch<br/>[PacketManager.cs]"]
  node_event_manager["Plugin Events<br/>[EventManager.cs]"]
  node_plugin_manager["Plugin Loading<br/>[PluginManager.cs]"]
end

subgraph group_skin["Skin and Mod Support"]
  node_skin_socket["Skin and Mod Socket"]
  node_skin_mod["Game Skin Patch<br/>[SkinMod.java]"]
  node_chat["Chat Support<br/>[ChatManager.cs]"]
end

subgraph group_platform["Shared Platform"]
  node_common_config[("Runtime Configuration<br/>[NirvanaConfig.cs]")]
  node_common_errors["Error Responses<br/>[Code.cs]"]
  node_cache[("Content Cache<br/>[CacheManager.cs]")]
  node_web_account["Account Web API"]
  node_web_plugins["Plugin Web API"]
  node_web_rental["Rental and Server APIs"]
  node_bedrock["Bedrock Launcher<br/>[LauncherService.cs]"]
end

node_player(("Launcher User"))
node_official_account["NetEase and 4399"]
node_remote_server["Minecraft Server"]

node_player -->|"starts and selects"| node_cli
node_cli -->|"authenticates and selects"| node_account_api
node_cli -->|"loads account state"| node_account
node_account_api -.->|"requests login"| node_official_account
node_cli -->|"renders arguments"| node_native_args
node_native_args -->|"starts game with"| node_java_game
node_java_game -->|"connects locally"| node_proxy
node_proxy -->|"forwards TCP"| node_remote_server
node_proxy -.->|"dispatches packets"| node_packet_manager
node_packet_manager -->|"registers plugin packets"| node_plugin_manager
node_event_manager -->|"loads plugin events"| node_plugin_manager
node_cli -->|"starts service"| node_skin_socket
node_skin_socket -->|"serves skin and mod data"| node_skin_mod
node_skin_mod -->|"reads server textures"| node_remote_server
node_java_game -.->|"uses chat support"| node_chat
node_web_account -->|"updates account state"| node_account
node_web_plugins -->|"queries plugin state"| node_plugin_manager
node_web_rental -.->|"provides rental services"| node_remote_server
node_bedrock -.->|"launches Bedrock game"| node_remote_server
node_cli -.->|"uses runtime settings"| node_common_config
node_web_account -->|"returns coded errors"| node_common_errors
node_cache -.->|"downloads content"| node_remote_server

click node_cli "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/Program.cs"
click node_account "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/Manager/InfoManager.cs"
click node_account_api "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.WPFLauncher/Protocol/NPFLauncher.cs"
click node_native_args "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/Program.cs"
click node_proxy "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Connection/GameConnection.cs"
click node_packet_manager "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/PacketManager.cs"
click node_event_manager "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/EventManager.cs"
click node_plugin_manager "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/PluginManager.cs"
click node_skin_socket "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/SkinSocketServer.cs"
click node_skin_mod "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_decompile/src/com/netease/mc/mod/skin/SkinMod.java"
click node_chat "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Chat/Manager/ChatManager.cs"
click node_common_config "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/NirvanaConfig.cs"
click node_common_errors "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/Utils/CodeTools/Code.cs"
click node_cache "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Public/Manager/CacheManager.cs"
click node_web_account "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/GameController/GameAccountController.cs"
click node_web_plugins "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/PluginsController/PluginsListController.cs"
click node_web_rental "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/GameController/GameRentalController.cs"
click node_bedrock "https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_account,node_account_api,node_native_args,node_player toneBlue
class node_java_game,node_proxy,node_packet_manager,node_event_manager,node_plugin_manager toneAmber
class node_skin_socket,node_skin_mod,node_chat,node_remote_server toneMint
class node_common_config,node_common_errors,node_cache,node_web_account,node_web_plugins,node_web_rental,node_bedrock toneRose
class node_official_account toneIndigo
```

## Components

### Startup and Accounts

- [Fantnel CLI](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/Program.cs): `_build/Nirvana.Cli/Program.cs`
- [Account State](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/Manager/InfoManager.cs): `_build/Nirvana.Common/Manager/InfoManager.cs`
- [Launcher Account APIs](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.WPFLauncher/Protocol/NPFLauncher.cs): `_build/Nirvana.WPFLauncher/Protocol/NPFLauncher.cs`
- [Native Args](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/Program.cs): `_build/Nirvana.Cli/Program.cs`

### Game Connectivity

- **Minecraft Game**
- [Local Game Proxy](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Connection/GameConnection.cs): `_build/Nirvana.Development/Connection/GameConnection.cs`
- [Packet Dispatch](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/PacketManager.cs): `_build/Nirvana.Development/Manager/PacketManager.cs`
- [Plugin Events](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/EventManager.cs): `_build/Nirvana.Development/Manager/EventManager.cs`
- [Plugin Loading](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Development/Manager/PluginManager.cs): `_build/Nirvana.Development/Manager/PluginManager.cs`

### Skin and Mod Support

- [Skin and Mod Socket](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Cli/SkinSocketServer.cs): `_build/Nirvana.Cli/SkinSocketServer.cs`
- [Game Skin Patch](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_decompile/src/com/netease/mc/mod/skin/SkinMod.java): `_decompile/src/com/netease/mc/mod/skin/SkinMod.java`
- [Chat Support](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Chat/Manager/ChatManager.cs): `_build/Nirvana.Chat/Manager/ChatManager.cs`

### Shared Platform

- [Runtime Configuration](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/NirvanaConfig.cs): `_build/Nirvana.Common/NirvanaConfig.cs`
- [Error Responses](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Common/Utils/CodeTools/Code.cs): `_build/Nirvana.Common/Utils/CodeTools/Code.cs`
- [Content Cache](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Public/Manager/CacheManager.cs): `_build/Nirvana.Public/Manager/CacheManager.cs`
- [Account Web API](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/GameController/GameAccountController.cs): `_build/Fantnel/Servlet/GameController/GameAccountController.cs`
- [Plugin Web API](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/PluginsController/PluginsListController.cs): `_build/Fantnel/Servlet/PluginsController/PluginsListController.cs`
- [Rental and Server APIs](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Fantnel/Servlet/GameController/GameRentalController.cs): `_build/Fantnel/Servlet/GameController/GameRentalController.cs`
- [Bedrock Launcher](https://github.com/ohyfmodmc/netease-bujidao-baiduan-launcher/blob/main/_build/Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs): `_build/Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs`

### Other components

- **Launcher User**
- **NetEase and 4399**
- **Minecraft Server**

## Connections

- Launcher User → Fantnel CLI: starts and selects
- Fantnel CLI → Launcher Account APIs: authenticates and selects (evidence: `_build/Nirvana.Cli/Program.cs`)
- Fantnel CLI → Account State: loads account state (evidence: `_build/Nirvana.Cli/Program.cs`)
- Launcher Account APIs → NetEase and 4399: requests login
- Fantnel CLI → Native Args: renders arguments (evidence: `_build/Nirvana.Cli/Program.cs`)
- Native Args → Minecraft Game: starts game with
- Minecraft Game → Local Game Proxy: connects locally
- Local Game Proxy → Minecraft Server: forwards TCP
- Local Game Proxy → Packet Dispatch: dispatches packets
- Packet Dispatch → Plugin Loading: registers plugin packets (evidence: `_build/Nirvana.Development/Manager/PacketManager.cs`)
- Plugin Events → Plugin Loading: loads plugin events (evidence: `_build/Nirvana.Development/Manager/EventManager.cs`)
- Fantnel CLI → Skin and Mod Socket: starts service (evidence: `_build/Nirvana.Cli/Program.cs`)
- Skin and Mod Socket → Game Skin Patch: serves skin and mod data
- Game Skin Patch → Minecraft Server: reads server textures
- Minecraft Game → Chat Support: uses chat support
- Account Web API → Account State: updates account state (evidence: `_build/Fantnel/Servlet/GameController/GameAccountController.cs`)
- Plugin Web API → Plugin Loading: queries plugin state (evidence: `_build/Fantnel/Servlet/PluginsController/PluginsListController.cs`)
- Rental and Server APIs → Minecraft Server: provides rental services
- Bedrock Launcher → Minecraft Server: launches Bedrock game
- Fantnel CLI → Runtime Configuration: uses runtime settings
- Account Web API → Error Responses: returns coded errors (evidence: `_build/Fantnel/Servlet/GameController/GameAccountController.cs`)
- Content Cache → Minecraft Server: downloads content
