mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
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:
1 parent
ef4b640867
commit
b20a3cf719
29 files changed
+1286
-17
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.volmit.generation;
|
||||
|
||||
import com.volmit.resource.PackResources;
|
||||
import com.volmit.world.PackWorld;
|
||||
|
||||
/** Host-owned invocation inputs. Views must not be retained or used by detached tasks.
|
||||
*
|
||||
@@ -10,4 +11,9 @@ import com.volmit.resource.PackResources;
|
||||
public interface InvocationContext {
|
||||
long worldSeed();
|
||||
PackResources resources();
|
||||
|
||||
/** The world this invocation generates, where modules keep their per-world state ({@link PackWorld#state}). An
|
||||
* invocation outside any world, such as an object a studio tool pastes, throws IllegalStateException.
|
||||
*/
|
||||
PackWorld world();
|
||||
}
|
||||
Reference in new issue
Block a user