First shot at starting.
This commit is contained in:
@@ -18,10 +18,6 @@
|
||||
|
||||
package appeng.core.settings;
|
||||
|
||||
|
||||
import appeng.core.AEConfig;
|
||||
|
||||
|
||||
public enum TickRates
|
||||
{
|
||||
|
||||
@@ -59,21 +55,25 @@ public enum TickRates
|
||||
|
||||
PressureTunnel( 1, 120 );
|
||||
|
||||
private final int defaultMin;
|
||||
private final int defaultMax;
|
||||
private int min;
|
||||
private int max;
|
||||
|
||||
TickRates( final int min, final int max )
|
||||
{
|
||||
this.setMin( min );
|
||||
this.setMax( max );
|
||||
this.defaultMin = min;
|
||||
this.defaultMax = max;
|
||||
this.min = min;
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public void Load( final AEConfig config )
|
||||
{
|
||||
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." );
|
||||
this.setMin( config.get( "TickRates", this.name() + ".min", this.getMin() ).getInt( this.getMin() ) );
|
||||
this.setMax( config.get( "TickRates", this.name() + ".max", this.getMax() ).getInt( this.getMax() ) );
|
||||
public int getDefaultMin() {
|
||||
return defaultMin;
|
||||
}
|
||||
|
||||
public int getDefaultMax() {
|
||||
return defaultMax;
|
||||
}
|
||||
|
||||
public int getMax()
|
||||
|
||||
Reference in New Issue
Block a user