aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2022-11-22 21:43:25 +0000
committerisXander <xandersmith2008@gmail.com>2022-11-22 21:43:25 +0000
commit204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9 (patch)
tree92ae4ecd5415f0d9952bc4a24d61df2a9b0c421a /src/testmod/java
parentabf47f54363aab5fb94eb5340c92775545b1736a (diff)
downloadYetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.tar.gz
YetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.tar.bz2
YetAnotherConfigLib-204b1dcd421e3fee5e3a7fdeb2fe0582ae5987a9.zip
bump to pre1
Diffstat (limited to 'src/testmod/java')
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/config/Entrypoint.java3
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/mixins/TitleScreenMixin.java6
2 files changed, 4 insertions, 5 deletions
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());
}
}