# oopnv70-lab/-ui- architecture

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

## Overview

Anti-Sodium UI is a small Minecraft client mod intended to restore the vanilla video-settings screen when Sodium substitutes its own. The shown mixin helper obtains the Minecraft instance and options from its parent screen, reflectively constructs the vanilla screen, and sets it as the callback result. The excerpt documents interception, but does not show the mixin registration or invocation wiring, so that link is left unverified.

Main entry points: [`src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`](https://github.com/oopnv70-lab/-ui-/blob/main/src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java) (Screen replacement)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_sodium["Sodium UI"]
node_mixin["Screen replacement"]
node_parent["Parent screen"]
node_minecraft["Minecraft client"]
node_options["Client options"]
node_vanilla["Vanilla video screen"]
node_callback["Mixin callback"]

node_sodium -.->|"intercepts"| node_mixin
node_mixin -->|"reads field"| node_parent
node_mixin -->|"retrieves"| node_minecraft
node_mixin -->|"reads"| node_options
node_mixin -->|"constructs"| node_vanilla
node_mixin -->|"sets result"| node_callback

click node_mixin "https://github.com/oopnv70-lab/-ui-/blob/main/src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.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_sodium,node_mixin,node_parent,node_minecraft,node_options,node_vanilla toneBlue
class node_callback toneIndigo
```

## Components

### Other components

- **Sodium UI**
- [Screen replacement](https://github.com/oopnv70-lab/-ui-/blob/main/src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java): `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`
- **Parent screen**
- **Minecraft client**
- **Client options**
- **Vanilla video screen**
- **Mixin callback**

## Connections

- Sodium UI → Screen replacement: intercepts
- Screen replacement → Parent screen: reads field (evidence: `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`)
- Screen replacement → Minecraft client: retrieves (evidence: `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`)
- Screen replacement → Client options: reads (evidence: `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`)
- Screen replacement → Vanilla video screen: constructs (evidence: `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`)
- Screen replacement → Mixin callback: sets result (evidence: `src/main/java/com/antisoium/ui/mixin/AntiSodiumUIMixin.java`)
