Applied-Energistics-2-tiler.../core/settings/TickRates.java

48 lines
908 B
Java
Raw Normal View History

2014-03-17 20:59:50 +01:00
package appeng.core.settings;
import appeng.core.AEConfig;
2014-06-09 01:54:38 +02:00
public enum TickRates
{
Interface(5, 120),
2014-03-17 20:59:50 +01:00
ImportBus(5, 40),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
ExportBus(5, 60),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
AnnihilationPlane(2, 120),
MJTunnel(1, 20),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
METunnel(5, 20),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
Inscriber(1, 1),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
IOPort(1, 5),
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
VibrationChamber(10, 40),
2014-06-09 01:54:38 +02:00
StorageBus(5, 60),
ItemTunnel(5, 60);
2014-03-17 20:59:50 +01:00
public int min;
public int max;
2014-06-09 01:54:38 +02:00
private TickRates(int min, int max) {
2014-03-17 20:59:50 +01:00
this.min = min;
this.max = max;
}
2014-06-09 01:54:38 +02:00
public void Load(AEConfig config)
2014-03-17 20:59:50 +01:00
{
2014-06-09 01:54:38 +02:00
config.addCustomCategoryComment(
"TickRates",
" Min / Max Tickrates for dynamic ticking, most of these components also use sleeping, to prevent constant ticking, adjust with care, non standard rates are not supported or tested." );
min = config.get( "TickRates", name() + ".min", min ).getInt( min );
max = config.get( "TickRates", name() + ".max", max ).getInt( max );
2014-03-17 20:59:50 +01:00
}
2014-06-09 01:54:38 +02:00
2014-03-17 20:59:50 +01:00
}