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 getValue() {
		return this.value;
	}

	public int nextValue() {
		int i = this.value++;
		return i;
	}

	public void reset() {
		this.value = this.startValue;
	}
}
