mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-30 02:01:59 -05:00
25 lines
376 B
Java
25 lines
376 B
Java
package net.optifine.util;
|
|
|
|
public class CounterInt {
|
|
private int startValue;
|
|
private int value;
|
|
|
|
public CounterInt(int startValue) {
|
|
this.startValue = startValue;
|
|
this.value = startValue;
|
|
}
|
|
|
|
public int nextValue() {
|
|
int i = this.value++;
|
|
return i;
|
|
}
|
|
|
|
public void reset() {
|
|
this.value = this.startValue;
|
|
}
|
|
|
|
public int getValue() {
|
|
return this.value;
|
|
}
|
|
}
|