forked from GregTech-Intergalactical/TesseractAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTesseract.java
39 lines (25 loc) · 995 Bytes
/
Tesseract.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package tesseract;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import net.minecraft.world.level.LevelAccessor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Set;
public class Tesseract {
protected final static Set<LevelAccessor> firstTick = new ObjectOpenHashSet<>();
public static final String API_ID = "tesseractapi";
public static final String API_NAME = "Tesseract API";
public static final String VERSION = "0.0.1";
public static final String DEPENDS = "";
public static boolean TEST = false;
public static final Logger LOGGER = LogManager.getLogger(API_ID);
public static final int HEALTH_CHECK_TIME = 1000;
public static void init() {
TesseractGraphWrappers.init();
TesseractConfig.createConfig();
}
public Tesseract() {
}
public static boolean hadFirstTick(LevelAccessor world) {
return TEST || firstTick.contains(world);
}
}