First shot at starting.

This commit is contained in:
Sebastian Hartte
2020-05-31 17:16:25 +02:00
parent fdd67bbba4
commit 6a88728544
17 changed files with 146 additions and 272 deletions
@@ -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()