mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +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
@@ -6,6 +6,7 @@ import com.volmit.hunk.Hunk;
|
||||
import com.volmit.mantle.Mantle;
|
||||
import com.volmit.random.WorldRandom;
|
||||
import com.volmit.resource.PackResources;
|
||||
import com.volmit.world.PackWorld;
|
||||
import com.volmit.stage.ChunkStageContext;
|
||||
import com.volmit.stage.Stage;
|
||||
import com.volmit.world.TerrainSampler;
|
||||
@@ -65,6 +66,11 @@ final class ChunkInvocation implements ChunkStageContext {
|
||||
return inputs.worldSeed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PackWorld world() {
|
||||
return inputs.world();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PackResources resources() {
|
||||
return inputs.resources();
|
||||
|
||||
Reference in new issue
Block a user