add ProtoWorld#getWorld

This commit is contained in:
dfsek
2021-11-28 11:36:29 -07:00
parent b880b6592b
commit 5ed7733320
2 changed files with 15 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.dfsek.terra.api.world.chunk.generation;
import com.dfsek.terra.api.world.access.World;
import com.dfsek.terra.api.world.access.WorldAccess;
@@ -7,4 +8,12 @@ public interface ProtoWorld extends WorldAccess {
int centerChunkX();
int centerChunkZ();
/**
* Get the world object this ProtoWorld represents
*
* <b>Do not read from/write to this world!</b>
* @return The world
*/
World getWorld();
}