diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-12-24 17:20:36 +0200 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-12-24 17:20:36 +0200 |
commit | 42d6ad1f8f94d0ce0c9e3c0a9c8112d2a84d2da8 (patch) | |
tree | 71c75fc5555d8ba946200ae48db97e6531aaba7a /GuiTest | |
parent | fa43ee9fcf370f278e6665c285e98d8d01e24f6f (diff) | |
download | LibGui-42d6ad1f8f94d0ce0c9e3c0a9c8112d2a84d2da8.tar.gz LibGui-42d6ad1f8f94d0ce0c9e3c0a9c8112d2a84d2da8.tar.bz2 LibGui-42d6ad1f8f94d0ce0c9e3c0a9c8112d2a84d2da8.zip |
Add CottonInventoryScreen ctor overloads with PlayerInventory
Closes #147.
Diffstat (limited to 'GuiTest')
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/client/LibGuiTestClient.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/LibGuiTestClient.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/LibGuiTestClient.java index 45b1cbf..efdcd3f 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/client/LibGuiTestClient.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/LibGuiTestClient.java @@ -1,7 +1,5 @@ package io.github.cottonmc.test.client; -import io.github.cottonmc.test.ReallySimpleDescription; - import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.command.v1.ClientCommandManager; import net.fabricmc.fabric.api.client.screenhandler.v1.ScreenRegistry; @@ -13,6 +11,7 @@ import io.github.cottonmc.cotton.gui.client.CottonInventoryScreen; import io.github.cottonmc.cotton.gui.impl.modmenu.ConfigGui; import io.github.cottonmc.cotton.gui.widget.WLabel; import io.github.cottonmc.test.LibGuiTest; +import io.github.cottonmc.test.ReallySimpleDescription; import io.github.cottonmc.test.TestDescription; import static net.fabricmc.fabric.api.client.command.v1.ClientCommandManager.literal; @@ -23,12 +22,12 @@ public class LibGuiTestClient implements ClientModInitializer { public void onInitializeClient() { ScreenRegistry.<TestDescription, CottonInventoryScreen<TestDescription>>register( LibGuiTest.GUI_SCREEN_HANDLER_TYPE, - (desc, inventory, title) -> new CottonInventoryScreen<>(desc, inventory.player, title) + CottonInventoryScreen::new ); ScreenRegistry.<ReallySimpleDescription, CottonInventoryScreen<ReallySimpleDescription>>register( LibGuiTest.REALLY_SIMPLE_SCREEN_HANDLER_TYPE, - (desc, inventory, title) -> new CottonInventoryScreen<>(desc, inventory.player, title) + CottonInventoryScreen::new ); CottonHud.add(new WHudTest(), 10, -20, 10, 10); |