mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-28 02:48:14 -05:00
Update #48 - Added some features from OptiFine
This commit is contained in:
24
sources/main/java/net/optifine/util/CounterInt.java
Normal file
24
sources/main/java/net/optifine/util/CounterInt.java
Normal file
@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user