Created a config to disable the ore generator in total

This commit is contained in:
Robert S 2014-03-25 07:34:42 -04:00
parent 2b4bac211d
commit e6d0cc5319
2 changed files with 92 additions and 91 deletions

View file

@ -40,11 +40,9 @@ import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry;
/** /** The core module of Resonant Induction
* The core module of Resonant Induction
* *
* @author Calclavia * @author Calclavia */
*/
@Mod(modid = ResonantInduction.ID, name = ResonantInduction.NAME, version = Reference.VERSION, dependencies = "required-after:ForgeMultipart@[1.0.0.244,);required-after:CalclaviaCore;before:ThermalExpansion;before:Mekanism") @Mod(modid = ResonantInduction.ID, name = ResonantInduction.NAME, version = Reference.VERSION, dependencies = "required-after:ForgeMultipart@[1.0.0.244,);required-after:CalclaviaCore;before:ThermalExpansion;before:Mekanism")
@NetworkMod(channels = Reference.CHANNEL, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class) @NetworkMod(channels = Reference.CHANNEL, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class)
@ModstatInfo(prefix = "resonantin") @ModstatInfo(prefix = "resonantin")
@ -81,12 +79,14 @@ public class ResonantInduction
public static final ContentRegistry contentRegistry = new ContentRegistry(Settings.CONFIGURATION, Settings.idManager, ID).setPrefix(Reference.PREFIX).setTab(TabRI.CORE); public static final ContentRegistry contentRegistry = new ContentRegistry(Settings.CONFIGURATION, Settings.idManager, ID).setPrefix(Reference.PREFIX).setTab(TabRI.CORE);
/** /** Recipe Types */
* Recipe Types
*/
public static enum RecipeType public static enum RecipeType
{ {
CRUSHER, GRINDER, MIXER, SMELTER, SAWMILL; CRUSHER,
GRINDER,
MIXER,
SMELTER,
SAWMILL;
} }
@EventHandler @EventHandler
@ -102,9 +102,7 @@ public class ResonantInduction
blockMachinePart = contentRegistry.createBlock(BlockMachineMaterial.class, ItemBlockMetadata.class); blockMachinePart = contentRegistry.createBlock(BlockMachineMaterial.class, ItemBlockMetadata.class);
/** /** Melting dusts */
* Melting dusts
*/
blockDust = contentRegistry.createTile(BlockDust.class, TileMaterial.class).setCreativeTab(null); blockDust = contentRegistry.createTile(BlockDust.class, TileMaterial.class).setCreativeTab(null);
// Items // Items
@ -152,6 +150,7 @@ public class ResonantInduction
Settings.CONFIGURATION.save(); Settings.CONFIGURATION.save();
// Generate Resources // Generate Resources
if (Settings.RESOURCE_GENERATOR)
ResourceGenerator.generateOreResources(); ResourceGenerator.generateOreResources();
proxy.postInit(); proxy.postInit();
} }

View file

@ -65,6 +65,8 @@ public class Settings
public static double LEVITATOR_MAX_SPEED = .2; public static double LEVITATOR_MAX_SPEED = .2;
@Config(category = Configuration.CATEGORY_GENERAL, key = "Levitator Acceleration") @Config(category = Configuration.CATEGORY_GENERAL, key = "Levitator Acceleration")
public static double LEVITATOR_ACCELERATION = .02; public static double LEVITATOR_ACCELERATION = .02;
@Config(category = Configuration.CATEGORY_GENERAL, key = "Enabled Resource Generator")
public static boolean RESOURCE_GENERATOR = true;
public static void setModMetadata(ModMetadata metadata, String id, String name) public static void setModMetadata(ModMetadata metadata, String id, String name)
{ {