mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-19 19:49:50 +00:00
Added new "machines" section to config - specifically enable or disable any core Mekanism machinery, including options to remove already-existing machinery from worlds
This commit is contained in:
1 parent
6d291c8bbc
commit
ff91bf72fe
8 files changed
+168
-47
No files matched your search
@@ -1,7 +1,11 @@
|
||||
package mekanism.api;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import mekanism.api.util.UnitDisplayUtils.EnergyType;
|
||||
import mekanism.api.util.UnitDisplayUtils.TempType;
|
||||
import mekanism.common.block.BlockMachine.MachineType;
|
||||
|
||||
public class MekanismConfig
|
||||
{
|
||||
@@ -44,6 +48,7 @@ public class MekanismConfig
|
||||
public static boolean blacklistBC;
|
||||
public static boolean blacklistIC2;
|
||||
public static boolean blacklistRF;
|
||||
public static boolean destroyDisabledBlocks;
|
||||
}
|
||||
|
||||
public static class client
|
||||
@@ -60,6 +65,21 @@ public class MekanismConfig
|
||||
public static boolean enableAmbientLighting;
|
||||
public static int ambientLightingLevel;
|
||||
}
|
||||
|
||||
public static class machines
|
||||
{
|
||||
private static Map<MachineType, Boolean> config = new HashMap<MachineType, Boolean>();
|
||||
|
||||
public static boolean isEnabled(MachineType type)
|
||||
{
|
||||
return config.get(type) != null && config.get(type);
|
||||
}
|
||||
|
||||
public static void setEntry(MachineType type, boolean enabled)
|
||||
{
|
||||
config.put(type, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
public static class usage
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user