# dimucathedev/vanifine architecture

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

## Overview

VaniFine is a .NET command-line tool for converting CIT/OptiFine resource-pack ZIPs into vanilla-compatible packs. The user supplies a pack path or selects a ZIP; the converter processes pack definitions and assets, then creates a converted pack and a names listing. The README documents item, potion, enchantment, ranged-weapon, and damage support, with limited block and painting support; armor is planned and entities are unsupported. Program.cs is the central implementation. The excerpts do not expose the full conversion call flow, so the graph omits unverified internal sequencing.

Main entry points: [`Program.cs`](https://github.com/dimucathedev/vanifine/blob/master/Program.cs) (Pack Converter), [`FileSelector.cs`](https://github.com/dimucathedev/vanifine/blob/master/FileSelector.cs) (ZIP Selector), [`TropicalFishInfo.cs`](https://github.com/dimucathedev/vanifine/blob/master/TropicalFishInfo.cs) (Fish Variant Data), [`Templates.cs`](https://github.com/dimucathedev/vanifine/blob/master/Templates.cs) (Model Templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Pack Input"]
  node_selector["ZIP Selector<br/>[FileSelector.cs]"]
end

subgraph group_conversion["Pack Conversion"]
  node_converter["Pack Converter<br/>[Program.cs]"]
  node_item_features["Item Features<br/>[Program.cs]"]
  node_fish_info["Fish Variant Data"]
  node_asset_conversion["Asset Conversion<br/>[Program.cs]"]
  node_model_templates["Model Templates<br/>[Templates.cs]"]
end

subgraph group_outputs["Generated Artifacts"]
  node_converted_pack["Converted Resource Pack<br/>[Program.cs]"]
  node_names_list["Names Listing<br/>[Program.cs]"]
end

node_user(("Pack User"))

node_user -->|"chooses pack"| node_converter
node_converter -->|"opens dialog"| node_selector
node_converter -->|"uses templates"| node_model_templates
node_converter -->|"uses fish data"| node_fish_info
node_converter -->|"creates pack"| node_converted_pack
node_converter -->|"creates listing"| node_names_list

click node_selector "https://github.com/dimucathedev/vanifine/blob/master/FileSelector.cs"
click node_converter "https://github.com/dimucathedev/vanifine/blob/master/Program.cs"
click node_item_features "https://github.com/dimucathedev/vanifine/blob/master/Program.cs"
click node_fish_info "https://github.com/dimucathedev/vanifine/blob/master/TropicalFishInfo.cs"
click node_asset_conversion "https://github.com/dimucathedev/vanifine/blob/master/Program.cs"
click node_model_templates "https://github.com/dimucathedev/vanifine/blob/master/Templates.cs"
click node_converted_pack "https://github.com/dimucathedev/vanifine/blob/master/Program.cs"
click node_names_list "https://github.com/dimucathedev/vanifine/blob/master/Program.cs"

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_selector,node_user toneBlue
class node_converter,node_item_features,node_fish_info,node_asset_conversion,node_model_templates toneAmber
class node_converted_pack,node_names_list toneMint
```

## Components

### Pack Input

- [ZIP Selector](https://github.com/dimucathedev/vanifine/blob/master/FileSelector.cs): `FileSelector.cs`

### Pack Conversion

- [Pack Converter](https://github.com/dimucathedev/vanifine/blob/master/Program.cs): `Program.cs`
- [Item Features](https://github.com/dimucathedev/vanifine/blob/master/Program.cs): `Program.cs`
- [Fish Variant Data](https://github.com/dimucathedev/vanifine/blob/master/TropicalFishInfo.cs): `TropicalFishInfo.cs`
- [Asset Conversion](https://github.com/dimucathedev/vanifine/blob/master/Program.cs): `Program.cs`
- [Model Templates](https://github.com/dimucathedev/vanifine/blob/master/Templates.cs): `Templates.cs`

### Generated Artifacts

- [Converted Resource Pack](https://github.com/dimucathedev/vanifine/blob/master/Program.cs): `Program.cs`
- [Names Listing](https://github.com/dimucathedev/vanifine/blob/master/Program.cs): `Program.cs`

### Other components

- **Pack User**

## Connections

- Pack User → Pack Converter: chooses pack (evidence: `README.MD`)
- Pack Converter → ZIP Selector: opens dialog (evidence: `Program.cs`)
- Pack Converter → Model Templates: uses templates (evidence: `Program.cs`)
- Pack Converter → Fish Variant Data: uses fish data (evidence: `Program.cs`)
- Pack Converter → Converted Resource Pack: creates pack (evidence: `README.MD`)
- Pack Converter → Names Listing: creates listing (evidence: `README.MD`)
