Move GuiFactory into 1.12.2 project
This commit is contained in:
@@ -1,63 +1 @@
|
||||
//#if MC<11400
|
||||
//$$ package com.replaymod.core.gui;
|
||||
//$$
|
||||
//$$ import com.replaymod.core.ReplayMod;
|
||||
//$$ import net.minecraft.client.Minecraft;
|
||||
//$$ import net.minecraft.client.gui.GuiScreen;
|
||||
//$$
|
||||
//#if MC>=10800
|
||||
//$$ import net.minecraftforge.fml.client.IModGuiFactory;
|
||||
//#else
|
||||
//$$ import cpw.mods.fml.client.IModGuiFactory;
|
||||
//#endif
|
||||
//$$
|
||||
//$$ import java.util.Set;
|
||||
//$$
|
||||
//$$ @SuppressWarnings("unused")
|
||||
//$$ public class GuiFactory implements IModGuiFactory {
|
||||
//$$ @Override
|
||||
//$$ public void initialize(Minecraft minecraftInstance) {
|
||||
//$$
|
||||
//$$ }
|
||||
//$$
|
||||
//#if MC>=11200
|
||||
//$$ @Override
|
||||
//$$ public boolean hasConfigGui() {
|
||||
//$$ return true;
|
||||
//$$ }
|
||||
//$$
|
||||
//$$ @Override
|
||||
//$$ public GuiScreen createConfigGui(GuiScreen parentScreen) {
|
||||
//$$ return new GuiReplaySettings(parentScreen, ReplayMod.instance.getSettingsRegistry()).toMinecraft();
|
||||
//$$ }
|
||||
//#else
|
||||
//$$ @Override
|
||||
//$$ public Class<? extends GuiScreen> mainConfigGuiClass() {
|
||||
//$$ return ConfigGuiWrapper.class;
|
||||
//$$ }
|
||||
//$$
|
||||
//$$ @Override
|
||||
//$$ public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement element) {
|
||||
//$$ return null;
|
||||
//$$ }
|
||||
//$$
|
||||
//$$ public static class ConfigGuiWrapper extends GuiScreen {
|
||||
//$$ private final GuiScreen parent;
|
||||
//$$
|
||||
//$$ public ConfigGuiWrapper(GuiScreen parent) {
|
||||
//$$ this.parent = parent;
|
||||
//$$ }
|
||||
//$$
|
||||
//$$ @Override
|
||||
//$$ public void initGui() {
|
||||
//$$ new GuiReplaySettings(parent, ReplayMod.instance.getSettingsRegistry()).display();
|
||||
//$$ }
|
||||
//$$ }
|
||||
//#endif
|
||||
//$$
|
||||
//$$ @Override
|
||||
//$$ public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() {
|
||||
//$$ return null;
|
||||
//$$ }
|
||||
//$$ }
|
||||
//#endif
|
||||
// 1.12.2 and below
|
||||
|
||||
Reference in New Issue
Block a user