# veeayeinin/tmpt architecture

> Architecture diagram of the GitHub repository veeayeinin/tmpt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/veeayeinin/tmpt
- Repository: https://github.com/veeayeinin/tmpt

## Overview

##### Project Type Analysis
This is a Minecraft Forge mod (specifically for version 1.12.2) that extends the Pixelmon mod by adding custom advancement triggers for capturing legendary Pokémon and Ultra Beasts.

##### Main Components

A. Core Components:
- Mod Entry Point (Tmpt.java)
- Trigger System
- UltraBeastCaptureTrigger
- UltraBeastCaptureHandler
- Resource Assets
- Advancements
- Localization

##### Use a layered approach with the following levels

**┌─────────────────────────────────────────┐**
- Minecraft                  │
- ┤
- Forge API                  │
- ┤
- Pixelmon                   │
- ┤
- TMPT                     │
- ┘

##### For the TMPT mod layer, create detailed components

**┌─────────────────────────────────────────────────────┐**
- TMPT Mod                        │

- ┌─────────────┐        ┌──────────────────────┐   │
- Mod Core  │        │   Capture Triggers   │   │
- (Tmpt.java)│───────▶│                      │   │
- ┘        │ - UltraBeastCapture  │   │
- LegendaryCapture    │   │
- ┘   │

- ▼               │
- ┌─────────────┐        ┌──────────────────────┐   │
- Localization│        │    Advancements      │   │
- (en_US.lang)│        │                      │   │
- ┘        │ - Legendary Pokemon   │   │
- Ultra Beasts        │   │
- ┘   │
- ┘

##### Interaction Flows
- How the mod initializes through Forge
- Demonstrate how capture triggers interact with Pixelmon's capture events
- How advancements are loaded and triggered

##### Additional Details
- Version compatibility (Forge 1.12.2)
- Dependencies (Pixelmon)
- Resource loading paths
- Event handling flow

Key Design Considerations:
##### Integration Points: Highlight where the mod interfaces with Pixelmon and Forge APIs

- Rectangles: Components
- Rounded rectangles: External systems

Remember to include a note about the two main advancement categories (Legendary Pokémon and Ultra Beasts) as they represent the core functionality of the mod.

## Diagram (Mermaid)

```mermaid
graph TB
    %% External Dependencies Layer
    subgraph Dependencies
        MC[Minecraft]
        FA[Forge API]
        PX[Pixelmon]
    end

    %% Core Mod Layer
    subgraph TMPT["TMPT Mod"]
        ME["Mod Entry Point"]:::core
        click ME "https://github.com/VeeAyeInIn/tmpt/blob/master/src/main/java/me/vee/forge/tmpt/Tmpt.java"
        
        subgraph Triggers["Capture Trigger System"]
            UBT["Ultra Beast Capture Trigger"]:::trigger
            click UBT "https://github.com/VeeAyeInIn/tmpt/blob/master/src/main/java/me/vee/forge/tmpt/UltraBeastCaptureTrigger.java"
            UBCH["Ultra Beast Capture Handler"]:::trigger
            click UBCH "https://github.com/VeeAyeInIn/tmpt/blob/master/src/main/java/me/vee/forge/tmpt/UltraBeastCaptureHandler.java"
        end

        subgraph Resources["Resource Assets"]
            LOC["Localization"]:::resource
            click LOC "https://github.com/VeeAyeInIn/tmpt/blob/master/src/main/resources/assets/tmpt/lang/en_US.lang"
            
            subgraph Advancements
                LP["Legendary Pokemon"]:::advancement
                click LP "https://github.com/VeeAyeInIn/tmpt/tree/master/src/main/resources/assets/tmpt/advancements/legendaries"
                UB["Ultra Beasts"]:::advancement
                click UB "https://github.com/VeeAyeInIn/tmpt/tree/master/src/main/resources/assets/tmpt/advancements/ultra_beasts"
            end
        end

        MM["Mod Metadata"]:::resource
        click MM "https://github.com/VeeAyeInIn/tmpt/blob/master/src/main/resources/mcmod.info"
    end

    %% Relationships
    MC --> FA
    FA --> PX
    PX --> ME
    ME --> UBT
    ME --> UBCH
    UBT --> UBCH
    UBCH --> LP
    UBCH --> UB
    ME --> LOC
    ME --> MM

    %% Styles
    classDef core fill:#3498db,stroke:#2980b9,color:white
    classDef trigger fill:#2ecc71,stroke:#27ae60,color:white
    classDef resource fill:#e67e22,stroke:#d35400,color:white
    classDef advancement fill:#9b59b6,stroke:#8e44ad,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Legend
    subgraph Legend
        C1["Core Component"]:::core
        T1["Trigger Component"]:::trigger
        R1["Resource Component"]:::resource
        A1["Advancement Component"]:::advancement
        E1["External Dependency"]:::external
    end
```
