aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-08 19:20:30 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-08 19:20:30 +0300
commit040dd6f14eacad8abd903911c0f36ddbd0bf5846 (patch)
tree51dee1646ef6b07e8af5526073ee4d1b9b0aed34 /src/main
parenteacd3d2b110d3e3536ca50df489490b30484f8d7 (diff)
downloadLibGui-040dd6f14eacad8abd903911c0f36ddbd0bf5846.tar.gz
LibGui-040dd6f14eacad8abd903911c0f36ddbd0bf5846.tar.bz2
LibGui-040dd6f14eacad8abd903911c0f36ddbd0bf5846.zip
Use non-deprecated ModMenu API
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ModMenuSupport.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ModMenuSupport.java b/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ModMenuSupport.java
index aa69c53..2ab2a47 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ModMenuSupport.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ModMenuSupport.java
@@ -1,11 +1,10 @@
package io.github.cottonmc.cotton.gui.client.modmenu;
-import java.util.function.Function;
import io.github.cottonmc.cotton.gui.client.CottonClientScreen;
import io.github.cottonmc.cotton.gui.client.LibGuiClient;
+import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
-import net.minecraft.client.gui.screen.Screen;
import net.minecraft.text.TranslatableText;
public class ModMenuSupport implements ModMenuApi {
@@ -16,7 +15,7 @@ public class ModMenuSupport implements ModMenuApi {
}
@Override
- public Function<Screen, ? extends Screen> getConfigScreenFactory() {
+ public ConfigScreenFactory<?> getModConfigScreenFactory() {
return screen -> new CottonClientScreen(new TranslatableText("options.libgui.libgui_settings"), new ConfigGui(screen)) {
public void onClose() {
this.client.openScreen(screen);