diff options
author | xander <xander@isxander.dev> | 2022-09-01 08:59:28 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-01 08:59:28 +0100 |
commit | e63a3c989e3a899bdc81558dd2e4c5cc2c659bde (patch) | |
tree | 210f4641cd79904385747cb5f432c7e028ee1068 /src/testmod | |
parent | 6f8ef7daaafd71090b2c334c10eadc8dedc738d9 (diff) | |
download | YetAnotherConfigLib-e63a3c989e3a899bdc81558dd2e4c5cc2c659bde.tar.gz YetAnotherConfigLib-e63a3c989e3a899bdc81558dd2e4c5cc2c659bde.tar.bz2 YetAnotherConfigLib-e63a3c989e3a899bdc81558dd2e4c5cc2c659bde.zip |
make YACL builder not require title to construct
Diffstat (limited to 'src/testmod')
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java index f328ab4..cdaf3a1 100644 --- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java +++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java @@ -15,7 +15,8 @@ import net.minecraft.text.Text; public class ModMenuIntegration implements ModMenuApi { @Override public ConfigScreenFactory<?> getModConfigScreenFactory() { - return (parent) -> YetAnotherConfigLib.createBuilder(Text.of("Test GUI")) + return (parent) -> YetAnotherConfigLib.createBuilder() + .title(Text.of("Test GUI")) .category(ConfigCategory.createBuilder() .name(Text.of("Control Examples")) .option(Option.createBuilder(boolean.class) |