-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
100 additions
and
22 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
29 changes: 29 additions & 0 deletions
29
src/main/java/me/nixuge/worlddownloader/gui/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,29 @@ | ||
package me.nixuge.worlddownloader.gui; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraftforge.fml.client.IModGuiFactory; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
public class GuiFactory implements IModGuiFactory { | ||
@Override | ||
public void initialize(final Minecraft minecraftInstance) { | ||
} | ||
|
||
@Override | ||
public Class<? extends GuiScreen> mainConfigGuiClass() { | ||
return ModGuiConfig.class; | ||
} | ||
|
||
@Override | ||
public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() { | ||
return new HashSet<>(); | ||
} | ||
|
||
@Override | ||
public RuntimeOptionGuiHandler getHandlerFor(final RuntimeOptionCategoryElement element) { | ||
return null; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/me/nixuge/worlddownloader/gui/ModGuiConfig.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,11 @@ | ||
package me.nixuge.worlddownloader.gui; | ||
|
||
import me.nixuge.worlddownloader.McMod; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import wdl.gui.GuiWDL; | ||
|
||
public class ModGuiConfig extends GuiWDL { | ||
public ModGuiConfig(final GuiScreen guiScreen) { | ||
super(guiScreen, McMod.wdl); | ||
} | ||
} |
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