Give modules per-world state, lifecycle hooks and services: PackWorld with its state store, InvocationContext.world(), ModuleLifecycle, @Service with Providers ALL, FIRST and ONE, ObjectsAt and StructureLocator, and the host's WorldStates, LifecycleRunner and catalog lookups

This commit is contained in:
piexel committed 2026-10-09 14:32:54 +02:00
1 parent ef4b640867
commit b20a3cf719
29 files changed
+1286 -17

No files matched your search

@@ -0,0 +1,12 @@
package com.volmit.host;
import com.volmit.ModuleLifecycle;
import java.util.Objects;
/** Lifecycle hooks and the module that registered them, which the host names when a hook fails. */
public record LifecycleRegistration(ModuleLifecycle lifecycle, DiscoveredModule module) {
public LifecycleRegistration {
Objects.requireNonNull(lifecycle, "lifecycle");
Objects.requireNonNull(module, "module");
}
}