Rename all Mekanica -> Mekanism

This commit is contained in:
Dave Smith committed 2019-04-03 10:50:13 -07:00
1 parent 584a51e779
commit 32eccdec9c
26 files changed
+86 -86

No files matched your search

@@ -279,7 +279,7 @@ public class ClientProxy extends CommonProxy {
.getBoolean();
client.baseSoundVolume = (float) Mekanism.configuration
.get(Configuration.CATEGORY_CLIENT, "SoundVolume", 1D,
"Adjust Mekanica sounds' base volume. < 1 is softer, higher is louder.").getDouble();
"Adjust Mekanism sounds' base volume. < 1 is softer, higher is louder.").getDouble();
client.machineEffects = Mekanism.configuration
.get(Configuration.CATEGORY_CLIENT, "MachineEffects", true, "Show particles when machines active.")
.getBoolean();
@@ -167,7 +167,7 @@ public class CommonProxy implements IGuiProvider {
"Enables recipes using Control Circuits to use OreDict'd Control Circuits from other mods.")
.getBoolean();
general.logPackets = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "LogPackets", false, "Log Mekanica packet names. Debug setting.")
.get(Configuration.CATEGORY_GENERAL, "LogPackets", false, "Log Mekanism packet names. Debug setting.")
.getBoolean();
general.dynamicTankEasterEgg = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false, "Audible sparkles.").getBoolean();
@@ -176,7 +176,7 @@ public class CommonProxy implements IGuiProvider {
"Allows vanilla spawners to be moved with a Cardboard Box.").getBoolean();
general.enableWorldRegeneration = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "EnableWorldRegeneration", false,
"Allows chunks to retrogen Mekanica ore blocks.").getBoolean();
"Allows chunks to retrogen Mekanism ore blocks.").getBoolean();
general.spawnBabySkeletons = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "SpawnBabySkeletons", true,
"Enable the spawning of baby skeletons. Think baby zombies but skeletons.")
@@ -218,7 +218,7 @@ public class CommonProxy implements IGuiProvider {
.get(Configuration.CATEGORY_GENERAL, "SaltVeinSize", 6, "Max number of blocks in a salt vein.", 1,
Integer.MAX_VALUE).getInt();
general.userWorldGenVersion = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "WorldRegenVersion", 0,
"Change this value to cause Mekanica to regen its ore in all loaded chunks.")
"Change this value to cause Mekanism to regen its ore in all loaded chunks.")
.getInt();
general.FROM_IC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToEU", 10D,
"Conversion multiplier from EU to Joules (EU * JoulesToEU = Joules)").getDouble();
@@ -347,7 +347,7 @@ public class CommonProxy implements IGuiProvider {
.getBoolean();
String s = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "EnergyType", "RF", "Displayed energy type in Mekanica GUIs.",
.get(Configuration.CATEGORY_GENERAL, "EnergyType", "RF", "Displayed energy type in Mekanism GUIs.",
new String[]{"J", "RF", "EU", "T"})
.getString().trim().toLowerCase();
@@ -368,7 +368,7 @@ public class CommonProxy implements IGuiProvider {
s = Mekanism.configuration
.get(Configuration.CATEGORY_GENERAL, "Temperature Units", "K",
"Displayed temperature unit in Mekanica GUIs.", new String[]{"K", "C", "R", "F"})
"Displayed temperature unit in Mekanism GUIs.", new String[]{"K", "C", "R", "F"})
.getString();
if (s != null) {
+1 -1
View File
@@ -196,7 +196,7 @@ import org.apache.logging.log4j.Logger;
public class Mekanism {
public static final String MODID = "mekanism";
public static final String MOD_NAME = "Mekanica";
public static final String MOD_NAME = "Mekanism";
public static final String LOG_TAG = '[' + MOD_NAME + ']';
public static final PlayerState playerState = new PlayerState();
public static final Set<String> freeRunnerOn = new HashSet<>();
@@ -151,7 +151,7 @@ public class ItemNetworkReader extends ItemEnergized {
if (player.isSneaking() && MekanismAPI.debug) {
String[] strings = TransmitterNetworkRegistry.getInstance().toStrings();
player.sendMessage(new TextComponentString(
EnumColor.GREY + "---------- " + EnumColor.DARK_BLUE + "[Mekanica Debug]" + EnumColor.GREY
EnumColor.GREY + "---------- " + EnumColor.DARK_BLUE + "[Mekanism Debug]" + EnumColor.GREY
+ " ----------"));
for (String s : strings) {
@@ -344,7 +344,7 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp
// On the off chance that another block got placed there (which seems only likely with corruption,
// go ahead and log what we found.
Mekanism.logger.warn("getInv() references a position that does not implement IAdvancedBoundingBlock: {}\n" +
"\tFound instead: {}\nPlease report this to the maintainer of Mekanica!", mainPos, tile);
"\tFound instead: {}\nPlease report this to the maintainer of Mekanism!", mainPos, tile);
}
return null;
@@ -104,7 +104,7 @@ public class MekanismTools implements IModule {
proxy.loadConfiguration();
//Finalization
Mekanism.logger.info("Loaded 'Mekanica: Tools' module.");
Mekanism.logger.info("Loaded 'Mekanism: Tools' module.");
}
public void addItems() {
@@ -10,7 +10,7 @@ public class ToolsCommonProxy {
*/
public void loadConfiguration() {
tools.armorSpawnRate = Mekanism.configuration
.get("tools.general", "MobArmorSpawnRate", 0.03, "The chance that Mekanica Armor can spawn on mobs.",
.get("tools.general", "MobArmorSpawnRate", 0.03, "The chance that Mekanism Armor can spawn on mobs.",
0.00, 1.00).getDouble(0.03);
if (Mekanism.configuration.hasChanged()) {