# wangtingzheng/mcp940 architecture

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

- Interactive diagram: https://gitdiagram.com/wangtingzheng/mcp940
- Repository: https://github.com/wangtingzheng/mcp940

## Overview

This repository is a Minecraft 1.12 source tree, with a Python MCP runtime alongside the game code. The documented user path is launching the client through `Start.java`; the game then depends on native LWJGL libraries. The graph highlights client presentation, shared world/entity behavior, server gameplay, and persistence/networking. Relationships are limited to startup documentation and references or calls visible in the supplied source index and excerpts; many broader gameplay connections are not established by the sampled evidence.

Main entry points: [`src/minecraft/net/minecraft/world/end/DragonFightManager.java`](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/end/DragonFightManager.java) (Dragon Fight), [`src/minecraft/net/minecraft/entity/Entity.java`](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/entity/Entity.java) (Entity Behavior), [`src/minecraft/net/minecraft/block/Block.java`](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/block/Block.java) (Blocks), [`src/minecraft/Start.java`](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/Start.java) (Game Launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Launch"]
  node_start["Game Launcher<br/>[Start.java]"]
end

subgraph group_client["Client"]
  node_minecraft["Minecraft Client<br/>[Minecraft.java]"]
  node_clientgui["Client Interface"]
  node_renderer["Graphics State"]
end

subgraph group_world["World Simulation"]
  node_blocks["Blocks<br/>[Block.java]"]
  node_blockcatalog["Block Catalog<br/>[Blocks.java]"]
  node_entities["Entity Behavior<br/>[Entity.java]"]
  node_players["Player Entities"]
  node_worldsim["World Simulation<br/>[World.java]"]
end

subgraph group_server["Server Gameplay"]
  node_advancements["Advancements"]
  node_dragonfight["Dragon Fight"]
  node_crystal["End Crystals"]
  node_serverworld["Server World<br/>[WorldServer.java]"]
end

subgraph group_infra["State and Networking"]
  node_storage[("Map Storage<br/>[MapStorage.java]")]
  node_nbt["NBT Data"]
  node_chunkstorage["Chunk Storage"]
  node_network["Network Manager"]
  node_httpconnection["HTTP Connection"]
  node_httppipeline["HTTP Pipeline<br/>[HttpPipeline.java]"]
end

node_user(("Player"))
node_native["LWJGL Libraries"]

node_user -->|"launches"| node_start
node_start -->|"starts client"| node_minecraft
node_minecraft -->|"requires libraries"| node_native
node_blockcatalog -->|"registers blocks"| node_blocks
node_entities -->|"checks collisions"| node_blocks
node_entities -.->|"uses world"| node_worldsim
node_players -.->|"interacts with"| node_worldsim
node_crystal -->|"notifies destruction"| node_dragonfight
node_dragonfight -->|"references triggers"| node_advancements
node_dragonfight -->|"tracks entities"| node_entities
node_chunkstorage -->|"stores block states"| node_blocks
node_storage -->|"serializes data"| node_nbt
node_httpconnection -->|"dispatches requests"| node_httppipeline

click node_start "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/Start.java"
click node_minecraft "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/client/Minecraft.java"
click node_clientgui "https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/client/gui"
click node_renderer "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/client/renderer/GlStateManager.java"
click node_blocks "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/block/Block.java"
click node_blockcatalog "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/init/Blocks.java"
click node_entities "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/entity/Entity.java"
click node_players "https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/entity/player"
click node_worldsim "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/World.java"
click node_advancements "https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/advancements"
click node_dragonfight "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/end/DragonFightManager.java"
click node_crystal "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/entity/item/EntityEnderCrystal.java"
click node_serverworld "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/WorldServer.java"
click node_storage "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/storage/MapStorage.java"
click node_nbt "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/nbt/NBTTagCompound.java"
click node_chunkstorage "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/chunk/storage/ExtendedBlockStorage.java"
click node_network "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/network/NetworkManager.java"
click node_httpconnection "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/src/HttpPipelineConnection.java"
click node_httppipeline "https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/src/HttpPipeline.java"

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_start toneBlue
class node_minecraft,node_clientgui,node_renderer toneAmber
class node_blocks,node_blockcatalog,node_entities,node_players,node_worldsim toneMint
class node_advancements,node_dragonfight,node_crystal,node_serverworld toneRose
class node_storage,node_nbt,node_chunkstorage,node_network,node_httpconnection,node_httppipeline,node_user,node_native toneIndigo
```

## Components

### Launch

- [Game Launcher](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/Start.java): `src/minecraft/Start.java`

### Client

- [Minecraft Client](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/client/Minecraft.java): `src/minecraft/net/minecraft/client/Minecraft.java`
- [Client Interface](https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/client/gui): `src/minecraft/net/minecraft/client/gui`
- [Graphics State](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/client/renderer/GlStateManager.java): `src/minecraft/net/minecraft/client/renderer/GlStateManager.java`

### World Simulation

- [Blocks](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/block/Block.java): `src/minecraft/net/minecraft/block/Block.java`
- [Block Catalog](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/init/Blocks.java): `src/minecraft/net/minecraft/init/Blocks.java`
- [Entity Behavior](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/entity/Entity.java): `src/minecraft/net/minecraft/entity/Entity.java`
- [Player Entities](https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/entity/player): `src/minecraft/net/minecraft/entity/player`
- [World Simulation](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/World.java): `src/minecraft/net/minecraft/world/World.java`

### Server Gameplay

- [Advancements](https://github.com/wangtingzheng/mcp940/tree/master/src/minecraft/net/minecraft/advancements): `src/minecraft/net/minecraft/advancements`
- [Dragon Fight](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/end/DragonFightManager.java): `src/minecraft/net/minecraft/world/end/DragonFightManager.java`
- [End Crystals](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/entity/item/EntityEnderCrystal.java): `src/minecraft/net/minecraft/entity/item/EntityEnderCrystal.java`
- [Server World](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/WorldServer.java): `src/minecraft/net/minecraft/world/WorldServer.java`

### State and Networking

- [Map Storage](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/storage/MapStorage.java): `src/minecraft/net/minecraft/world/storage/MapStorage.java`
- [NBT Data](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/nbt/NBTTagCompound.java): `src/minecraft/net/minecraft/nbt/NBTTagCompound.java`
- [Chunk Storage](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/world/chunk/storage/ExtendedBlockStorage.java): `src/minecraft/net/minecraft/world/chunk/storage/ExtendedBlockStorage.java`
- [Network Manager](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/network/NetworkManager.java): `src/minecraft/net/minecraft/network/NetworkManager.java`
- [HTTP Connection](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/src/HttpPipelineConnection.java): `src/minecraft/net/minecraft/src/HttpPipelineConnection.java`
- [HTTP Pipeline](https://github.com/wangtingzheng/mcp940/blob/master/src/minecraft/net/minecraft/src/HttpPipeline.java): `src/minecraft/net/minecraft/src/HttpPipeline.java`

### Other components

- **Player**
- **LWJGL Libraries**

## Connections

- Player → Game Launcher: launches (evidence: `README.md`)
- Game Launcher → Minecraft Client: starts client (evidence: `README.md`)
- Minecraft Client → LWJGL Libraries: requires libraries (evidence: `README.md`)
- Block Catalog → Blocks: registers blocks (evidence: `src/minecraft/net/minecraft/init/Blocks.java`)
- Entity Behavior → Blocks: checks collisions (evidence: `src/minecraft/net/minecraft/entity/Entity.java`)
- Entity Behavior → World Simulation: uses world
- Player Entities → World Simulation: interacts with
- End Crystals → Dragon Fight: notifies destruction (evidence: `src/minecraft/net/minecraft/entity/item/EntityEnderCrystal.java`)
- Dragon Fight → Advancements: references triggers (evidence: `src/minecraft/net/minecraft/world/end/DragonFightManager.java`)
- Dragon Fight → Entity Behavior: tracks entities (evidence: `src/minecraft/net/minecraft/world/end/DragonFightManager.java`)
- Chunk Storage → Blocks: stores block states (evidence: `src/minecraft/net/minecraft/world/chunk/storage/ExtendedBlockStorage.java`)
- Map Storage → NBT Data: serializes data (evidence: `src/minecraft/net/minecraft/world/storage/MapStorage.java`)
- HTTP Connection → HTTP Pipeline: dispatches requests (evidence: `src/minecraft/net/minecraft/src/HttpPipelineConnection.java`)
