feat(hytale): add pinned adapter and reproducible build

This commit is contained in:
2026-08-15 08:50:58 +02:00
parent 098ce5caa4
commit ce313d372a
17 changed files with 824 additions and 0 deletions
@@ -0,0 +1,37 @@
package dev.projectcapture.hytale;
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
import dev.projectcapture.hytale.persistence.JsonStateStore;
import java.util.concurrent.CompletableFuture;
/**
* Thin Hytale entry point. Domain behavior lives in {@code engine}; this class
* owns only Hytale lifecycle and adapter wiring.
*/
public final class ProjectCapturePlugin extends JavaPlugin {
private final JsonStateStore stateStore;
private final FeatureFlags featureFlags;
public ProjectCapturePlugin(JavaPluginInit init) {
super(init);
this.stateStore = new JsonStateStore(init.getDataDirectory());
this.featureFlags = FeatureFlags.stableRelease();
}
@Override
public CompletableFuture<Void> preLoad() {
stateStore.initialize();
return CompletableFuture.completedFuture(null);
}
JsonStateStore stateStore() {
return stateStore;
}
FeatureFlags featureFlags() {
return featureFlags;
}
}