This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added most needed configuration aspects (missing ore config) - Closes #…
- Loading branch information
Showing
8 changed files
with
123 additions
and
36 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/renevo/nethercore/client/gui/config/ModConfigGui.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.renevo.nethercore.client.gui.config; | ||
|
||
import com.renevo.nethercore.Util; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.fml.client.config.GuiConfig; | ||
import net.minecraftforge.fml.client.config.IConfigElement; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class ModConfigGui extends GuiConfig { | ||
public ModConfigGui(GuiScreen parent) { | ||
super(parent, getConfigElements(), Util.MODID, false, false, "Nether Core Configuration"); | ||
} | ||
|
||
private static List<IConfigElement> getConfigElements() { | ||
List<IConfigElement> list = new ArrayList<IConfigElement>(); | ||
|
||
return list; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/renevo/nethercore/client/gui/config/ModGuiFactory.java
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.renevo.nethercore.client.gui.config; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.fml.client.IModGuiFactory; | ||
|
||
import java.util.Set; | ||
|
||
public class ModGuiFactory implements IModGuiFactory { | ||
@Override | ||
public void initialize(Minecraft minecraft) { | ||
|
||
} | ||
|
||
@Override | ||
public Class<? extends GuiScreen> mainConfigGuiClass() { | ||
return ModConfigGui.class; | ||
} | ||
|
||
@Override | ||
public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement runtimeOptionCategoryElement) { | ||
return null; | ||
} | ||
} |
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
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
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
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