# thumuss/easywarp architecture

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

- Interactive diagram: https://gitdiagram.com/thumuss/easywarp
- Repository: https://github.com/thumuss/easywarp

## Overview

##### Main Components

a) Core Components:
- Plugin Main Class (Main.java) - Entry point
- Command Handler System
- Warp Management System
- Configuration System

b) Data Components:
- Config Storage (config.yml)
- Warp Data Storage

**Top Layer: Plugin Interface**

**Middle Layer: Core Logic**

**Bottom Layer: Data Storage**

##### Specific Component Relationships

a) Plugin Interface Layer:
- It to the Commands.java handler
- WarpCommandsBase as the command processing component

b) Core Logic Layer:
- WarpBase
- WarpPerso
- WarpW
- Inheritance relationships between these classes
- ConfigGenerator to both the main class and the data storage

c) Data Storage Layer:
- Config.yml storage
- Warp data persistence

##### Important Relationships to Highlight

- How Commands.java interfaces with the WarpCommandsBase
- Inheritance hierarchy in the warp package
- Demonstrate how ConfigGenerator manages configuration data flow

##### Technical Details

- Plugin.yml configuration connection
- Workflow from command input to warp execution
- Configuration loading and saving processes

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Minecraft Server"
        MC[Minecraft Server Interface]
    end

    subgraph "Plugin Interface Layer"
        Main["Main.java"]:::entry
        Commands["Commands.java"]:::commands
        WarpCmdBase["WarpCommandsBase"]:::commands
    end

    subgraph "Core Logic Layer"
        WarpBase["WarpBase"]:::warp
        WarpPerso["WarpPerso"]:::warp
        WarpW["WarpW"]:::warp
        ConfigGen["ConfigGenerator"]:::config
    end

    subgraph "Data Storage Layer"
        Config["config.yml"]:::storage
        PluginYml["plugin.yml"]:::storage
    end

    subgraph "CI/CD"
        DevWorkflow["Development Workflow"]:::cicd
        ReleaseWorkflow["Release Workflow"]:::cicd
    end

    %% Relationships
    MC --> Main
    Main --> Commands
    Commands --> WarpCmdBase
    WarpCmdBase --> WarpBase
    WarpBase --> WarpPerso
    WarpBase --> WarpW
    Main --> ConfigGen
    ConfigGen --> Config
    Main --> PluginYml

    %% Click Events
    click Main "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/Main.java"
    click Commands "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/Commands.java"
    click WarpCmdBase "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/commands/WarpCommandsBase.java"
    click WarpBase "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/warp/WarpBase.java"
    click WarpPerso "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/warp/WarpPerso.java"
    click WarpW "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/warp/WarpW.java"
    click ConfigGen "https://github.com/Thumuss/easywarp/blob/main/src/main/java/eu/thumus/easywarp/utils/ConfigGenerator.java"
    click Config "https://github.com/Thumuss/easywarp/blob/main/src/main/resources/config.yml"
    click PluginYml "https://github.com/Thumuss/easywarp/blob/main/src/main/resources/plugin.yml"
    click DevWorkflow "https://github.com/Thumuss/easywarp/blob/main/.github/workflows/dev.yml"
    click ReleaseWorkflow "https://github.com/Thumuss/easywarp/blob/main/.github/workflows/release.yml"

    %% Styles
    classDef entry fill:#2196F3,stroke:#1565C0,color:white
    classDef commands fill:#4CAF50,stroke:#388E3C,color:white
    classDef warp fill:#8BC34A,stroke:#689F38,color:white
    classDef config fill:#FF9800,stroke:#F57C00,color:white
    classDef storage fill:#FFC107,stroke:#FFA000,color:black
    classDef cicd fill:#9C27B0,stroke:#7B1FA2,color:white

    %% Legend
    subgraph Legend
        L1[Plugin Entry]:::entry
        L2[Commands]:::commands
        L3[Warp System]:::warp
        L4[Configuration]:::config
        L5[Storage]:::storage
        L6[CI/CD]:::cicd
    end
```
