This repository was archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to mc 1.12 / forge 2375; made some stuff configurable, better…
… focus handling
Showing
9 changed files
with
105 additions
and
27 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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/de/guntram/mcmod/easiercrafting/GuiConfig.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,16 @@ | ||
package de.guntram.mcmod.easiercrafting; | ||
|
||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.common.config.ConfigElement; | ||
import static net.minecraftforge.common.config.Configuration.CATEGORY_CLIENT; | ||
|
||
public class GuiConfig extends net.minecraftforge.fml.client.config.GuiConfig { | ||
public GuiConfig(GuiScreen parent) { | ||
super(parent, | ||
new ConfigElement(ConfigurationHandler.getConfig().getCategory(CATEGORY_CLIENT)).getChildElements(), | ||
EasierCrafting.MODID, | ||
false, | ||
false, | ||
"Easier Crafting configuration"); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/de/guntram/mcmod/easiercrafting/GuiFactory.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,28 @@ | ||
package de.guntram.mcmod.easiercrafting; | ||
|
||
import java.util.Set; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.fml.client.IModGuiFactory; | ||
|
||
public class GuiFactory implements IModGuiFactory { | ||
|
||
@Override | ||
public boolean hasConfigGui() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public void initialize(final Minecraft minecraftInstance) { | ||
} | ||
|
||
@Override | ||
public GuiScreen createConfigGui(GuiScreen parentScreen) { | ||
return new GuiConfig(parentScreen); | ||
} | ||
|
||
@Override | ||
public Set<IModGuiFactory.RuntimeOptionCategoryElement> runtimeGuiCategories() { | ||
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