# andeditor7/viewmc architecture

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

- Interactive diagram: https://gitdiagram.com/andeditor7/viewmc
- Repository: https://github.com/andeditor7/viewmc

## Overview

ViewMC is a desktop Minecraft-style world viewer with a scene-rendering and media-making workflow. The visible application entry initializes shared assets and renderers, opens the menu, and manages screens; users can load resources/worlds, view and interact with a rendered scene, and configure a maker workflow for GIF or MP4 output. The graph preserves the major world, resource, rendering, UI, and maker subsystems visible in the tree. Many runtime links are inferred only where indexed references or excerpts support them; unsampled internals are not expanded.

Main entry points: [`core/src/main/java/com/andedit/viewmc/Main.java`](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/Main.java) (Application core), [`core/src/main/java/com/andedit/viewmc/resource/Resources.java`](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/Resources.java) (Game resources), [`core/src/main/java/com/andedit/viewmc/world/World.java`](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/World.java) (World data), [`core/src/main/java/com/andedit/viewmc/world/WorldRenderer.java`](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/WorldRenderer.java) (World renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and UI"]
  node_main["Application core<br/>[Main.java]"]
  node_screens["Screens and menus<br/>[MenuCore.java]"]
  node_ui["Game UI"]
  node_input["Input controls"]
end

subgraph group_world["World and resources"]
  node_resource_loader["Resource loading"]
  node_mod["Mod metadata<br/>[Mod.java]"]
  node_resources["Game resources<br/>[Resources.java]"]
  node_block_models["Block models<br/>[BlockModel.java]"]
  node_biomes["Biome data<br/>[Biomes.java]"]
  node_world_data["World data<br/>[World.java]"]
  node_chunks[("Chunk storage<br/>[Chunk.java]")]
end

subgraph group_render["Rendering"]
  node_assets["Shared assets<br/>[Assets.java]"]
  node_world_render["World renderer<br/>[WorldRenderer.java]"]
  node_mesh["Mesh construction<br/>[MeshBuilder.java]"]
  node_camera["Camera and lighting<br/>[Camera.java]"]
end

subgraph group_maker["Scene maker"]
  node_maker_ui["Maker controls<br/>[MakerUI.java]"]
  node_maker_core["Maker workflow<br/>[MakerCore.java]"]
  node_scene["Scene rendering<br/>[Scene.java]"]
  node_structure["Structure preview"]
  node_video["GIF and MP4 output"]
end

subgraph group_platform["Desktop platform"]
  node_launcher["Desktop launcher"]
  node_window["Window events<br/>[Window.java]"]
end

node_user(("User"))

node_user -->|"starts app"| node_launcher
node_launcher -->|"launches"| node_main
node_window -->|"routes drops"| node_main
node_main -->|"initializes"| node_assets
node_main -->|"opens menu"| node_screens
node_main -->|"installs input"| node_input
node_user -.->|"operates"| node_ui
node_ui -.->|"controls screens"| node_screens
node_resource_loader -.->|"builds resources"| node_resources
node_mod -.->|"provides metadata"| node_resources
node_world_data -->|"reads resources"| node_resources
node_world_data -->|"uses biome data"| node_biomes
node_world_data -->|"manages chunks"| node_chunks
node_resources -.->|"loads block models"| node_block_models
node_block_models -->|"builds geometry"| node_mesh
node_world_render -.->|"renders world"| node_world_data
node_world_render -.->|"uses meshes"| node_mesh
node_world_render -.->|"uses camera"| node_camera
node_maker_ui -->|"configures maker"| node_maker_core
node_maker_ui -->|"sets scene options"| node_scene
node_maker_ui -->|"selects encoder"| node_video
node_structure -->|"renders scene"| node_scene
node_structure -->|"reads resources"| node_resources
node_maker_core -.->|"exports frames"| node_video

click node_launcher "https://github.com/andeditor7/viewmc/blob/main/lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Lwjgl3Launcher.java"
click node_window "https://github.com/andeditor7/viewmc/blob/main/lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Window.java"
click node_main "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/Main.java"
click node_screens "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/MenuCore.java"
click node_ui "https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/ui"
click node_input "https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/input"
click node_assets "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/Assets.java"
click node_resource_loader "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/ResourceLoader.java"
click node_mod "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/Mod.java"
click node_resources "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/Resources.java"
click node_block_models "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/block/BlockModel.java"
click node_biomes "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/biome/Biomes.java"
click node_world_data "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/World.java"
click node_chunks "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/Chunk.java"
click node_world_render "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/WorldRenderer.java"
click node_mesh "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/graphic/MeshBuilder.java"
click node_camera "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/graphic/Camera.java"
click node_maker_ui "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/ui/MakerUI.java"
click node_maker_core "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/MakerCore.java"
click node_scene "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/maker/Scene.java"
click node_structure "https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/structure/StructureRenderer.java"
click node_video "https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/maker"

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_main,node_screens,node_ui,node_input,node_user toneBlue
class node_resource_loader,node_mod,node_resources,node_block_models,node_biomes,node_world_data,node_chunks toneAmber
class node_assets,node_world_render,node_mesh,node_camera toneMint
class node_maker_ui,node_maker_core,node_scene,node_structure,node_video toneRose
class node_launcher,node_window toneIndigo
```

## Components

### Application and UI

- [Application core](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/Main.java): `core/src/main/java/com/andedit/viewmc/Main.java`
- [Screens and menus](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/MenuCore.java): `core/src/main/java/com/andedit/viewmc/MenuCore.java`
- [Game UI](https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/ui): `core/src/main/java/com/andedit/viewmc/ui`
- [Input controls](https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/input): `core/src/main/java/com/andedit/viewmc/input`

### World and resources

- [Resource loading](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/ResourceLoader.java): `core/src/main/java/com/andedit/viewmc/resource/ResourceLoader.java`
- [Mod metadata](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/Mod.java): `core/src/main/java/com/andedit/viewmc/resource/Mod.java`
- [Game resources](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/resource/Resources.java): `core/src/main/java/com/andedit/viewmc/resource/Resources.java`
- [Block models](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/block/BlockModel.java): `core/src/main/java/com/andedit/viewmc/block/BlockModel.java`
- [Biome data](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/biome/Biomes.java): `core/src/main/java/com/andedit/viewmc/biome/Biomes.java`
- [World data](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/World.java): `core/src/main/java/com/andedit/viewmc/world/World.java`
- [Chunk storage](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/Chunk.java): `core/src/main/java/com/andedit/viewmc/world/Chunk.java`

### Rendering

- [Shared assets](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/Assets.java): `core/src/main/java/com/andedit/viewmc/Assets.java`
- [World renderer](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/world/WorldRenderer.java): `core/src/main/java/com/andedit/viewmc/world/WorldRenderer.java`
- [Mesh construction](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/graphic/MeshBuilder.java): `core/src/main/java/com/andedit/viewmc/graphic/MeshBuilder.java`
- [Camera and lighting](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/graphic/Camera.java): `core/src/main/java/com/andedit/viewmc/graphic/Camera.java`

### Scene maker

- [Maker controls](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/ui/MakerUI.java): `core/src/main/java/com/andedit/viewmc/ui/MakerUI.java`
- [Maker workflow](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/MakerCore.java): `core/src/main/java/com/andedit/viewmc/MakerCore.java`
- [Scene rendering](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/maker/Scene.java): `core/src/main/java/com/andedit/viewmc/maker/Scene.java`
- [Structure preview](https://github.com/andeditor7/viewmc/blob/main/core/src/main/java/com/andedit/viewmc/structure/StructureRenderer.java): `core/src/main/java/com/andedit/viewmc/structure/StructureRenderer.java`
- [GIF and MP4 output](https://github.com/andeditor7/viewmc/tree/main/core/src/main/java/com/andedit/viewmc/maker): `core/src/main/java/com/andedit/viewmc/maker`

### Desktop platform

- [Desktop launcher](https://github.com/andeditor7/viewmc/blob/main/lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Lwjgl3Launcher.java): `lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Lwjgl3Launcher.java`
- [Window events](https://github.com/andeditor7/viewmc/blob/main/lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Window.java): `lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Window.java`

### Other components

- **User**

## Connections

- User → Desktop launcher: starts app
- Desktop launcher → Application core: launches (evidence: `lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Lwjgl3Launcher.java`)
- Window events → Application core: routes drops (evidence: `lwjgl3/src/main/java/com/andedit/viewmc/lwjgl3/Window.java`)
- Application core → Shared assets: initializes (evidence: `core/src/main/java/com/andedit/viewmc/Main.java`)
- Application core → Screens and menus: opens menu (evidence: `core/src/main/java/com/andedit/viewmc/Main.java`)
- Application core → Input controls: installs input (evidence: `core/src/main/java/com/andedit/viewmc/Main.java`)
- User → Game UI: operates
- Game UI → Screens and menus: controls screens
- Resource loading → Game resources: builds resources (evidence: `core/src/main/java/com/andedit/viewmc/resource/Resources.java`)
- Mod metadata → Game resources: provides metadata
- World data → Game resources: reads resources (evidence: `core/src/main/java/com/andedit/viewmc/world/World.java`)
- World data → Biome data: uses biome data (evidence: `core/src/main/java/com/andedit/viewmc/world/World.java`)
- World data → Chunk storage: manages chunks (evidence: `core/src/main/java/com/andedit/viewmc/world/World.java`)
- Game resources → Block models: loads block models
- Block models → Mesh construction: builds geometry (evidence: `core/src/main/java/com/andedit/viewmc/block/BlockModel.java`)
- World renderer → World data: renders world (evidence: `core/src/main/java/com/andedit/viewmc/world/World.java`)
- World renderer → Mesh construction: uses meshes
- World renderer → Camera and lighting: uses camera
- Maker controls → Maker workflow: configures maker (evidence: `core/src/main/java/com/andedit/viewmc/ui/MakerUI.java`)
- Maker controls → Scene rendering: sets scene options (evidence: `core/src/main/java/com/andedit/viewmc/ui/MakerUI.java`)
- Maker controls → GIF and MP4 output: selects encoder (evidence: `core/src/main/java/com/andedit/viewmc/ui/MakerUI.java`)
- Structure preview → Scene rendering: renders scene (evidence: `core/src/main/java/com/andedit/viewmc/structure/StructureRenderer.java`)
- Structure preview → Game resources: reads resources (evidence: `core/src/main/java/com/andedit/viewmc/structure/StructureRenderer.java`)
- Maker workflow → GIF and MP4 output: exports frames
