diff options
author | isXander <xandersmith2008@gmail.com> | 2022-11-22 21:43:25 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2022-11-22 21:43:25 +0000 |
commit | 204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9 (patch) | |
tree | 92ae4ecd5415f0d9952bc4a24d61df2a9b0c421a /src | |
parent | abf47f54363aab5fb94eb5340c92775545b1736a (diff) | |
download | YetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.tar.gz YetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.tar.bz2 YetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.zip |
bump to pre1
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/fabric.mod.json | 2 | ||||
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java | 3 | ||||
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 37b150e..234a281 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -20,7 +20,7 @@ }, "depends": { "fabricloader": ">=0.14.0", - "minecraft": "~1.19.3-alpha.22.46.a", + "minecraft": "~1.19.3-beta.1", "java": ">=17", "fabric-resource-loader-v0": "*" }, diff --git a/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java b/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java index 39baffa..c71f592 100644 --- a/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java +++ b/src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java @@ -1,13 +1,12 @@ package dev.isxander.yacl.test.config; -import com.google.gson.Gson; import dev.isxander.yacl.config.ConfigInstance; import dev.isxander.yacl.config.GsonConfigInstance; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.loader.api.FabricLoader; public class Entrypoint implements ClientModInitializer { - private static GsonConfigInstance<ConfigData> config; + private static ConfigInstance<ConfigData> config; @Override public void onInitializeClient() { diff --git a/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java b/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java index b32a392..2635eaf 100644 --- a/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java +++ b/src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java @@ -18,9 +18,9 @@ public abstract class TitleScreenMixin extends Screen { @Inject(method = "init", at = @At("RETURN")) private void injectTestButton(CallbackInfo ci) { - addDrawableChild(ButtonWidget.createBuilder(Text.of("YACL"), button -> client.setScreen(GuiTest.getModConfigScreenFactory(client.currentScreen))) - .setPosition(0, 0) - .setWidth(50) + addDrawableChild(ButtonWidget.builder(Text.of("YACL"), button -> client.setScreen(GuiTest.getModConfigScreenFactory(client.currentScreen))) + .position(0, 0) + .width(50) .build()); } } |