mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Smeltery broken into components
This commit is contained in:
1 parent
9a6ace2f69
commit
349b124ac3
156 files changed
+4862
-665
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package tconstruct.util.config;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import net.minecraftforge.common.Configuration;
|
||||
|
||||
public class BOPConfig
|
||||
{
|
||||
public static void initProps (File location)
|
||||
{
|
||||
/* Here we will set up the config file for the mod
|
||||
* First: Create a folder inside the config folder
|
||||
* Second: Create the actual config file
|
||||
* Note: Configs are a pain, but absolutely necessary for every mod.
|
||||
*/
|
||||
|
||||
File newFile = new File(location + "/biomesoplenty/ids.cfg");
|
||||
if (newFile.exists())
|
||||
{
|
||||
|
||||
/* [Forge] Configuration class, used as config method */
|
||||
Configuration config = new Configuration(newFile);
|
||||
|
||||
/* Load the configuration file */
|
||||
config.load();
|
||||
|
||||
promisedLandDimensionID = config.get("dimension settings", "Promised Land Dimension ID", -200).getInt();
|
||||
System.out.println("[TConstruct]PL Dim ID: " + promisedLandDimensionID);
|
||||
}
|
||||
else
|
||||
{
|
||||
promisedLandDimensionID = -100;
|
||||
}
|
||||
}
|
||||
|
||||
public static int promisedLandDimensionID;
|
||||
}
|
||||
Reference in new issue
Block a user