aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java
blob: d5233bbd182247ecf4d75adc17f499306252eb25 (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
27
28
29
30
31
package io.github.moulberry.notenoughupdates.util;

import com.google.gson.JsonObject;

public class Constants {

    public static JsonObject BONUSES;
    public static JsonObject DISABLE;
    public static JsonObject ENCHANTS;
    public static JsonObject LEVELING;
    public static JsonObject MISC;
    public static JsonObject PETNUMS;
    public static JsonObject PETS;
    public static JsonObject PARENTS;
    
    public static void reload() {
        BONUSES = Utils.getConstant("bonuses");
        DISABLE = Utils.getConstant("disable");
        ENCHANTS = Utils.getConstant("enchants");
        LEVELING = Utils.getConstant("leveling");
        MISC = Utils.getConstant("misc");
        PETNUMS = Utils.getConstant("petnums");
        PETS = Utils.getConstant("pets");
        PARENTS = Utils.getConstant("parents");
    }

    static {
        reload();
    }

}