# bush1root/tutorialclient architecture

> Architecture diagram of the GitHub repository bush1root/tutorialclient, 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/bush1root/tutorialclient
- Repository: https://github.com/bush1root/tutorialclient

## Overview

TutorialClient is a Minecraft 1.12.2 hacked-client mod. Its apparent user-facing workflow is selecting categorized client modules and adjusting their settings through an in-game click GUI; module families cover combat, movement, rendering, exploits, and player actions. The README is sparse, and most feature implementations and startup wiring were not sampled, so those branches are represented by their exact source directories without speculative call edges. The sampled modern GUI code shows module listing, toggling, and setting controls; the repository also contains a separate legacy GUI.

Main entry points: [`src/main/java/yea/bushroot/clickgui/component/components/Button.java`](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/component/components/Button.java) (Module Buttons), [`src/main/java/com/example/examplemod/Client.java`](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Client.java) (Client Registry), [`src/main/java/yea/bushroot/clickgui/Setting.java`](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/Setting.java) (Setting Model), [`src/main/java/com/example/examplemod/Module/Module.java`](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Module/Module.java) (Module Framework)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Client Runtime"]
  node_bootstrap["Mod Bootstrap<br/>[ExampleMod.java]"]
  node_client["Client Registry<br/>[Client.java]"]
  node_modulebase["Module Framework<br/>[Module.java]"]
end

subgraph group_features["Client Features"]
  node_combat["Combat Modules"]
  node_movement["Movement Modules"]
  node_renderfeatures["Render Modules"]
  node_exploit["Exploit Modules"]
  node_playerfeatures["Player Modules"]
end

subgraph group_gui["Click GUI"]
  node_legacygui["Legacy Click GUI"]
  node_legacy_panels["Legacy Panels<br/>[Panel.java]"]
  node_modern_gui["GUI Manager"]
  node_frames["Category Frames<br/>[Frame.java]"]
  node_module_buttons["Module Buttons<br/>[Button.java]"]
  node_settings["Setting Model<br/>[Setting.java]"]
  node_settings_registry["Settings Registry"]
  node_setting_controls["Setting Controls"]
end

subgraph group_rendering["Text Rendering"]
  node_font_base["Font Atlas<br/>[CFont.java]"]
  node_font_renderer["Formatted Text"]
end

node_player(("Minecraft Player"))
node_minecraft["Minecraft Client"]

node_player -.->|"uses"| node_minecraft
node_minecraft -.->|"loads mod"| node_bootstrap
node_bootstrap -.->|"initializes"| node_client
node_client -.->|"registers modules"| node_modulebase
node_frames -->|"lists category modules"| node_client
node_frames -->|"creates buttons"| node_module_buttons
node_module_buttons -->|"toggles module"| node_modulebase
node_module_buttons -->|"reads settings"| node_settings_registry
node_module_buttons -->|"creates controls"| node_setting_controls
node_setting_controls -->|"reads and updates"| node_settings
node_settings_registry -->|"stores settings"| node_settings
node_settings -->|"belongs to module"| node_modulebase
node_font_renderer -->|"extends"| node_font_base

click node_bootstrap "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/ExampleMod.java"
click node_client "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Client.java"
click node_modulebase "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Module/Module.java"
click node_combat "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/COMBAT"
click node_movement "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/MOVEMENT"
click node_renderfeatures "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/RENDER"
click node_exploit "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/EXPLOIT"
click node_playerfeatures "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/PLAYER"
click node_legacygui "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/me/bushroot/clickgui/ClickGuiScreen.java"
click node_legacy_panels "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/me/bushroot/clickgui/Panel.java"
click node_modern_gui "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/ClickGuiManager.java"
click node_frames "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/component/Frame.java"
click node_module_buttons "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/component/components/Button.java"
click node_settings "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/Setting.java"
click node_settings_registry "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/SettingsManager.java"
click node_setting_controls "https://github.com/bush1root/tutorialclient/tree/main/src/main/java/yea/bushroot/clickgui/component/components/sub"
click node_font_base "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/font/CFont.java"
click node_font_renderer "https://github.com/bush1root/tutorialclient/blob/main/src/main/java/font/MinecraftFontRenderer.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_bootstrap,node_client,node_modulebase,node_minecraft toneBlue
class node_combat,node_movement,node_renderfeatures,node_exploit,node_playerfeatures toneAmber
class node_legacygui,node_legacy_panels,node_modern_gui,node_frames,node_module_buttons,node_settings,node_settings_registry,node_setting_controls toneMint
class node_font_base,node_font_renderer toneRose
class node_player toneIndigo
```

## Components

### Client Runtime

- [Mod Bootstrap](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/ExampleMod.java): `src/main/java/com/example/examplemod/ExampleMod.java`
- [Client Registry](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Client.java): `src/main/java/com/example/examplemod/Client.java`
- [Module Framework](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/com/example/examplemod/Module/Module.java): `src/main/java/com/example/examplemod/Module/Module.java`

### Client Features

- [Combat Modules](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/COMBAT): `src/main/java/com/example/examplemod/Module/COMBAT`
- [Movement Modules](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/MOVEMENT): `src/main/java/com/example/examplemod/Module/MOVEMENT`
- [Render Modules](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/RENDER): `src/main/java/com/example/examplemod/Module/RENDER`
- [Exploit Modules](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/EXPLOIT): `src/main/java/com/example/examplemod/Module/EXPLOIT`
- [Player Modules](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/com/example/examplemod/Module/PLAYER): `src/main/java/com/example/examplemod/Module/PLAYER`

### Click GUI

- [Legacy Click GUI](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/me/bushroot/clickgui/ClickGuiScreen.java): `src/main/java/me/bushroot/clickgui/ClickGuiScreen.java`
- [Legacy Panels](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/me/bushroot/clickgui/Panel.java): `src/main/java/me/bushroot/clickgui/Panel.java`
- [GUI Manager](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/ClickGuiManager.java): `src/main/java/yea/bushroot/clickgui/ClickGuiManager.java`
- [Category Frames](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/component/Frame.java): `src/main/java/yea/bushroot/clickgui/component/Frame.java`
- [Module Buttons](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/component/components/Button.java): `src/main/java/yea/bushroot/clickgui/component/components/Button.java`
- [Setting Model](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/Setting.java): `src/main/java/yea/bushroot/clickgui/Setting.java`
- [Settings Registry](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/yea/bushroot/clickgui/SettingsManager.java): `src/main/java/yea/bushroot/clickgui/SettingsManager.java`
- [Setting Controls](https://github.com/bush1root/tutorialclient/tree/main/src/main/java/yea/bushroot/clickgui/component/components/sub): `src/main/java/yea/bushroot/clickgui/component/components/sub`

### Text Rendering

- [Font Atlas](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/font/CFont.java): `src/main/java/font/CFont.java`
- [Formatted Text](https://github.com/bush1root/tutorialclient/blob/main/src/main/java/font/MinecraftFontRenderer.java): `src/main/java/font/MinecraftFontRenderer.java`

### Other components

- **Minecraft Player**
- **Minecraft Client**

## Connections

- Minecraft Player → Minecraft Client: uses
- Minecraft Client → Mod Bootstrap: loads mod
- Mod Bootstrap → Client Registry: initializes
- Client Registry → Module Framework: registers modules
- Category Frames → Client Registry: lists category modules (evidence: `src/main/java/yea/bushroot/clickgui/component/Frame.java`)
- Category Frames → Module Buttons: creates buttons (evidence: `src/main/java/yea/bushroot/clickgui/component/Frame.java`)
- Module Buttons → Module Framework: toggles module (evidence: `src/main/java/yea/bushroot/clickgui/component/components/Button.java`)
- Module Buttons → Settings Registry: reads settings (evidence: `src/main/java/yea/bushroot/clickgui/component/components/Button.java`)
- Module Buttons → Setting Controls: creates controls (evidence: `src/main/java/yea/bushroot/clickgui/component/components/Button.java`)
- Setting Controls → Setting Model: reads and updates (evidence: `src/main/java/yea/bushroot/clickgui/component/components/sub/Slider.java`)
- Settings Registry → Setting Model: stores settings (evidence: `src/main/java/yea/bushroot/clickgui/SettingsManager.java`)
- Setting Model → Module Framework: belongs to module (evidence: `src/main/java/yea/bushroot/clickgui/Setting.java`)
- Formatted Text → Font Atlas: extends (evidence: `src/main/java/font/MinecraftFontRenderer.java`)
