Start api

This commit is contained in:
mcrcortex
2024-03-15 11:20:11 +10:00
parent d6de7c547e
commit f59e6b74ac

View File

@@ -0,0 +1,28 @@
package me.cortex.voxy.api;
import me.cortex.voxy.common.world.WorldSection;
public class VoxyApi {
private VoxyApi(String useIdentifier) {
}
public static VoxyApi makeAPI(String identifier) {
return new VoxyApi(identifier);
}
public interface ArbitraryGenerateCallback {
int ALL_DARK = -1;
int OK = 0;
int ALL_SKY = 1;
int generate(int lodLevel, int x, int y, int z, long[] outputBuffer);
}
public void setArbitraryGenerator(ArbitraryGenerateCallback generator) {
}
public WorldSection acquireSection(int level, int x, int y, int z) {
return null;
}
}