-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
package squeek.quakemovement; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.fml.client.IModGuiFactory; | ||
import net.minecraftforge.common.config.ConfigElement; | ||
import net.minecraftforge.fml.client.DefaultGuiFactory; | ||
import net.minecraftforge.fml.client.config.GuiConfig; | ||
|
||
import java.util.Set; | ||
|
||
public class ModConfigGuiFactory implements IModGuiFactory | ||
public class ModConfigGuiFactory extends DefaultGuiFactory | ||
{ | ||
@Override | ||
public void initialize(Minecraft minecraftInstance) | ||
{ | ||
} | ||
|
||
@Override | ||
public Class<? extends GuiScreen> mainConfigGuiClass() | ||
{ | ||
return ModConfigGui.class; | ||
} | ||
|
||
@Override | ||
public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() | ||
public ModConfigGuiFactory() | ||
{ | ||
return null; | ||
super(ModInfo.MODID, GuiConfig.getAbridgedConfigPath(ModConfig.config.toString())); | ||
} | ||
|
||
@Override | ||
public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement element) | ||
public GuiScreen createConfigGui(GuiScreen parentScreen) | ||
{ | ||
return null; | ||
return new GuiConfig(parentScreen, new ConfigElement(ModConfig.config.getCategory(ModConfig.CATEGORY_MOVEMENT)).getChildElements(), modid, false, false, title); | ||
} | ||
} |