aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/data/Mod.java
blob: 095ddedc83c069003f127d8f493945708d02cede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package io.polyfrost.oneconfig.config.data;

import io.polyfrost.oneconfig.config.interfaces.Config;

public class Mod {
    public final String name;
    public final ModType modType;
    public final String creator;
    public final String version;
    public Config config;
    public final OptionPage defaultPage;

    /**
     * @param name    Friendly name of the mod
     * @param modType Type of the mod (for example ModType.QOL)
     * @param creator Creator of the mod
     * @param version Version of the mod
     */
    public Mod(String name, ModType modType, String creator, String version) {
        this.name = name;
        this.modType = modType;
        this.creator = creator;
        this.version = version;
        this.defaultPage = new OptionPage(name, this);
    }
}