Files
BetterFoliage/src/main/java/mods/betterfoliage/common/config/OptionInteger.java
T
octarine-noise 220f2356d8 Major refactoring
Added cactus and lilypads
2014-06-29 21:53:35 +02:00

27 lines
454 B
Java

package mods.betterfoliage.common.config;
public class OptionInteger {
public int min;
public int max;
public int step;
public int value;
public OptionInteger(int min, int max, int step, int value) {
this.min = min;
this.max = max;
this.step = step;
this.value = value;
}
public void increment() {
value += step;
if (value > max) value = max;
}
public void decrement() {
value -= step;
if (value < min) value = min;
}
}