mirror of
https://gitflic.ru/project/lax1dude/eaglercraft-1_8.git
synced 2025-07-21 13:01:31 -09: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;
|
|
}
|
|
}
|