shedaniel / AutoConfig

Fork of Auto Config.
Apache License 2.0
28 stars 13 forks source link

Getting resolution errors with AutoConfig #45

Closed TechPro424 closed 1 year ago

TechPro424 commented 1 year ago
package in.techpro424.groupmessages.config;

import me.shedaniel.autoconfig.ConfigData;
import me.shedaniel.autoconfig.annotation.Config;

@Config(name = "group-messages")
public class AutoConfig implements ConfigData {

    boolean toggleA = true;
    boolean toggleB = false;

    @Config.Gui.CollapsibleObject
    InnerStuff stuff = new InnerStuff();

    @Config.Gui.Excluded
    InnerStuff invisibleStuff = new InnerStuff();

    static class InnerStuff {
        int a = 0;
        int b = 1;
    }

}

Getting an error saying that Config.Gui.CollapsibleObject cannot be resolved to a type and also Config.Gui.Excluded cannot be resolved to a type

TechPro424 commented 1 year ago

My bad, I was supposed to use ConfigEntry.Gui.CollapsibleObject and ConfigEntry.Gui.Excluded respectively Sorry for taking up your time