From 9810ab4209ba14bca41fa0d7e7c9753e35093d00 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 8 Oct 2022 19:01:24 +0200 Subject: Rename .java to .kt --- .../skyhanni/config/ConfigGuiForgeInterop.java | 49 ---------------------- .../skyhanni/config/ConfigGuiForgeInterop.kt | 49 ++++++++++++++++++++++ 2 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.java create mode 100644 src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.kt (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.java b/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.java deleted file mode 100644 index 0633f09de..000000000 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.java +++ /dev/null @@ -1,49 +0,0 @@ -package at.hannibal2.skyhanni.config; - -import at.hannibal2.skyhanni.config.core.GuiScreenElementWrapper; -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.GuiScreen; -import net.minecraftforge.fml.client.IModGuiFactory; -import org.lwjgl.input.Keyboard; - -import java.io.IOException; -import java.util.Set; - -public class ConfigGuiForgeInterop implements IModGuiFactory { - @Override - public void initialize(Minecraft minecraft) {} - - @Override - public Class mainConfigGuiClass() { - return WrappedSkyHanniConfig.class; - } - - @Override - public Set runtimeGuiCategories() { - return null; - } - - @Override - public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement runtimeOptionCategoryElement) { - return null; - } - - public static class WrappedSkyHanniConfig extends GuiScreenElementWrapper { - - private final GuiScreen parent; - - public WrappedSkyHanniConfig(GuiScreen parent) { - super(ConfigEditor.editor); - this.parent = parent; - } - - @Override - public void handleKeyboardInput() throws IOException { - if (Keyboard.getEventKeyState() && Keyboard.getEventKey() == Keyboard.KEY_ESCAPE) { - Minecraft.getMinecraft().displayGuiScreen(parent); - return; - } - super.handleKeyboardInput(); - } - } -} diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.kt new file mode 100644 index 000000000..0633f09de --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiForgeInterop.kt @@ -0,0 +1,49 @@ +package at.hannibal2.skyhanni.config; + +import at.hannibal2.skyhanni.config.core.GuiScreenElementWrapper; +import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.GuiScreen; +import net.minecraftforge.fml.client.IModGuiFactory; +import org.lwjgl.input.Keyboard; + +import java.io.IOException; +import java.util.Set; + +public class ConfigGuiForgeInterop implements IModGuiFactory { + @Override + public void initialize(Minecraft minecraft) {} + + @Override + public Class mainConfigGuiClass() { + return WrappedSkyHanniConfig.class; + } + + @Override + public Set runtimeGuiCategories() { + return null; + } + + @Override + public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement runtimeOptionCategoryElement) { + return null; + } + + public static class WrappedSkyHanniConfig extends GuiScreenElementWrapper { + + private final GuiScreen parent; + + public WrappedSkyHanniConfig(GuiScreen parent) { + super(ConfigEditor.editor); + this.parent = parent; + } + + @Override + public void handleKeyboardInput() throws IOException { + if (Keyboard.getEventKeyState() && Keyboard.getEventKey() == Keyboard.KEY_ESCAPE) { + Minecraft.getMinecraft().displayGuiScreen(parent); + return; + } + super.handleKeyboardInput(); + } + } +} -- cgit