# walker84837/retrohue architecture

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

- Interactive diagram: https://gitdiagram.com/walker84837/retrohue
- Repository: https://github.com/walker84837/retrohue

## Overview

RetroHue is a small Java library for converting Minecraft legacy color and formatting codes into MiniMessage markup or Adventure Components. Callers can also query legacy color codes directly; the companion ChatColor API provides Bukkit-style code utilities. The excerpts show ChatColor initializing and using RetroHue, but omit the exact conversion-to-Component implementation details, so the graph avoids claiming an internal MiniMessage call sequence.

Main entry points: [`retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java) (RetroHue API), [`retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java`](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java) (ChatColor enum)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversion["Legacy conversion"]
  node_retro["RetroHue API<br/>[RetroHue.java]"]
  node_parser["Legacy parser<br/>[RetroHue.java]"]
  node_code_lookup["Color code lookup<br/>[RetroHue.java]"]
end

subgraph group_chatcolor["ChatColor utilities"]
  node_chatcolor["ChatColor enum<br/>[ChatColor.java]"]
  node_string_utils["Legacy string utilities<br/>[ChatColor.java]"]
end

subgraph group_outputs["Conversion outputs"]
  node_markup["MiniMessage markup"]
  node_component["Adventure Component"]
end

node_caller(("Library caller"))

node_caller -->|"calls"| node_retro
node_retro -->|"parses codes"| node_parser
node_caller -->|"queries color"| node_code_lookup
node_parser -->|"emits markup"| node_markup
node_caller -->|"requests component"| node_component
node_chatcolor -->|"initializes"| node_retro
node_chatcolor -->|"provides utilities"| node_string_utils

click node_retro "https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java"
click node_parser "https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java"
click node_code_lookup "https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java"
click node_chatcolor "https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java"
click node_string_utils "https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/ChatColor.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_retro,node_parser,node_code_lookup toneBlue
class node_chatcolor,node_string_utils toneAmber
class node_markup,node_component toneMint
class node_caller toneIndigo
```

## Components

### Legacy conversion

- [RetroHue API](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java): `retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`
- [Legacy parser](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java): `retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`
- [Color code lookup](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java): `retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`

### ChatColor utilities

- [ChatColor enum](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java): `retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java`
- [Legacy string utilities](https://github.com/walker84837/retrohue/blob/main/retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java): `retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java`

### Conversion outputs

- **MiniMessage markup**
- **Adventure Component**

### Other components

- **Library caller**

## Connections

- Library caller → RetroHue API: calls (evidence: `README.md`)
- RetroHue API → Legacy parser: parses codes (evidence: `retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`)
- Library caller → Color code lookup: queries color (evidence: `README.md`)
- Legacy parser → MiniMessage markup: emits markup (evidence: `retrohue/src/main/java/org/winlogon/retrohue/RetroHue.java`)
- Library caller → Adventure Component: requests component (evidence: `README.md`)
- ChatColor enum → RetroHue API: initializes (evidence: `retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java`)
- ChatColor enum → Legacy string utilities: provides utilities (evidence: `retrohue/src/main/java/org/winlogon/retrohue/ChatColor.java`)
