isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
96 stars 36 forks source link

Allow subclasses for @AutoGen #141

Open falseresync opened 7 months ago

falseresync commented 7 months ago

I suggest adding a new @AutoGen(passthrough = true) option specifically to enable this kind of thing:

@SerialEntry
@AutoGen(category = CHEATS, passthrough = true)
 // this means that the field won't be converted to an option
 // instead the fields of this object will 
public Cheats cheats = new Cheats();

public static final class Cheats {
    @SerialEntry
    @TickBox
    @AutoGen // All of the fields generated under the category CHEATS
    // The category field has to be optional and have a usage contract instead 
    public boolean expendWandChargeInSurvival = true;
}