generated from BocchiKessokuTeam/ForgeTemplateMod-ArchLoom
-
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.
- Loading branch information
Showing
11 changed files
with
530 additions
and
63 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
24 changes: 24 additions & 0 deletions
24
src/main/java/org/thinkingstudio/forgematica/Forgematica.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,24 @@ | ||
package org.thinkingstudio.forgematica; | ||
|
||
import fi.dy.masa.litematica.InitHandler; | ||
import fi.dy.masa.litematica.Reference; | ||
import fi.dy.masa.litematica.gui.GuiConfigs; | ||
import fi.dy.masa.malilib.event.InitializationHandler; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.loading.FMLLoader; | ||
import org.thinkingstudio.mafglib.util.ForgePlatformUtils; | ||
|
||
@Mod(Reference.MOD_ID) | ||
public class Forgematica { | ||
public Forgematica() { | ||
if (FMLLoader.getDist().isClient()) { | ||
ForgePlatformUtils.getInstance().getClientModIgnoredServerOnly(); | ||
InitializationHandler.getInstance().registerInitializationHandler(new InitHandler()); | ||
ForgePlatformUtils.getInstance().registerModConfigScreen(Reference.MOD_ID, (screen) -> { | ||
GuiConfigs gui = new GuiConfigs(); | ||
gui.setParent(screen); | ||
return gui; | ||
}); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.