mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-04 15:41:30 +00:00
For fuck's sake, why haven't I done this earlier
This commit is contained in:
@@ -18,17 +18,31 @@
|
|||||||
|
|
||||||
package com.volmit.iris.engine.object;
|
package com.volmit.iris.engine.object;
|
||||||
|
|
||||||
|
import com.volmit.iris.Iris;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class IrisEngineStatistics {
|
public class IrisEngineStatistics {
|
||||||
private int totalHotloads = 0;
|
private int totalHotloads = 0;
|
||||||
private int chunksGenerated = 0;
|
private int chunksGenerated = 0;
|
||||||
|
private String IrisCreationVersion = getVersion();
|
||||||
|
|
||||||
public void generatedChunk() {
|
public void generatedChunk() {
|
||||||
chunksGenerated++;
|
chunksGenerated++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
String input = Iris.instance.getDescription().getVersion();
|
||||||
|
int hyphenIndex = input.indexOf('-');
|
||||||
|
|
||||||
|
String result = null;
|
||||||
|
if (hyphenIndex != -1) {
|
||||||
|
result = input.substring(0, hyphenIndex);
|
||||||
|
System.out.println(result);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public void hotloaded() {
|
public void hotloaded() {
|
||||||
totalHotloads++;
|
totalHotloads++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user