use of net.moddingplayground.frame.api.config.v0.option.Option in project frame-fabric by moddingplayground.
the class Config method addConfigListEntries.
@Environment(EnvType.CLIENT)
public void addConfigListEntries(ConfigEntryBuilder entryBuilder, Supplier<ConfigCategory> categoryCreator) {
if (this.canDisplayInMenu()) {
ConfigCategory category = categoryCreator.get();
for (Map.Entry<Identifier, Option<?>> entry : this.getDisplayedOptions().entrySet()) {
Identifier id = entry.getKey();
Option<?> option = entry.getValue();
option.addConfigEntries(category, id, entryBuilder);
}
}
}
Aggregations