-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a config to disable each material individually, as well as disable darts and dart shoioters entirely, and disable gravitite tool forges.
- Loading branch information
Showing
8 changed files
with
195 additions
and
109 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
52 changes: 52 additions & 0 deletions
52
src/main/java/shnupbups/tinkersaether/config/TAConfig.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,52 @@ | ||
package shnupbups.tinkersaether.config; | ||
|
||
import net.minecraftforge.common.config.Config; | ||
import net.minecraftforge.common.config.ConfigManager; | ||
import net.minecraftforge.common.config.Configuration; | ||
import net.minecraftforge.fml.client.event.ConfigChangedEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | ||
import shnupbups.tinkersaether.TinkersAether; | ||
|
||
@Config(modid = TinkersAether.modid) | ||
@Config.LangKey("tinkersaether.config.title") | ||
public class TAConfig extends Configuration { | ||
|
||
@Config.Comment("Whether Skyroot is enabled or not.") | ||
@Config.RequiresMcRestart | ||
public static boolean skyroot = true; | ||
|
||
@Config.Comment("Whether Holystone is enabled or not.") | ||
@Config.RequiresMcRestart | ||
public static boolean holystone = true; | ||
|
||
@Config.Comment("Whether Zanite is enabled or not.") | ||
@Config.RequiresMcRestart | ||
public static boolean zanite = true; | ||
|
||
@Config.Comment("Whether Gravitite is enabled or not.") | ||
@Config.RequiresMcRestart | ||
public static boolean gravitite = true; | ||
|
||
@Config.Comment("Whether Darts and Dart Shooters are enabled or not.") | ||
@Config.RequiresMcRestart | ||
public static boolean darts = true; | ||
|
||
@Config.Comment("Whether Gravitite can be used to make a tool forge.") | ||
@Config.RequiresMcRestart | ||
public static boolean gravititeForge = true; | ||
|
||
@Mod.EventBusSubscriber(modid = TinkersAether.modid) | ||
private static class EventHandler { | ||
@SubscribeEvent | ||
public static void onConfigChanged(final ConfigChangedEvent.OnConfigChangedEvent event) { | ||
if (event.getModID().equals(TinkersAether.modid)) { | ||
ConfigManager.sync(TinkersAether.modid, Config.Type.INSTANCE); | ||
} | ||
} | ||
} | ||
|
||
public static String getConfig() { | ||
return "Skyroot: "+skyroot+" Holystone: "+holystone+" Zanite: "+zanite+" Gravitite: "+gravitite+" Darts: "+darts+" GravititeForge: "+gravititeForge; | ||
} | ||
} |
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.