From f59e6b74ac2a546dd11f8adbf01faa2b4311a64c Mon Sep 17 00:00:00 2001 From: mcrcortex <{ID}+{username}@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:20:11 +1000 Subject: [PATCH] Start api --- src/main/java/me/cortex/voxy/api/VoxyApi.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/java/me/cortex/voxy/api/VoxyApi.java diff --git a/src/main/java/me/cortex/voxy/api/VoxyApi.java b/src/main/java/me/cortex/voxy/api/VoxyApi.java new file mode 100644 index 00000000..77f50a91 --- /dev/null +++ b/src/main/java/me/cortex/voxy/api/VoxyApi.java @@ -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; + } +}