Archived
0

World <-- Region <-- Chunk Weak references

This commit is contained in:
Forwolk
2018-08-04 13:19:08 +03:00
parent d84e6ca749
commit 610981b7b8
6 changed files with 71 additions and 12 deletions

View File

@@ -9,6 +9,8 @@ import mc.core.block.BlockFactory;
import mc.core.block.BlockType;
import mc.core.world.Biome;
import mc.core.world.Chunk;
import mc.core.world.Region;
import mc.core.world.World;
public class SimpleChunk implements Chunk {
@Override
@@ -104,4 +106,14 @@ public class SimpleChunk implements Chunk {
else if (y == 3) return blockFactory.create(BlockType.GRASS, 0);
else return Block.airBlock(x, y, z);
}
@Override
public Region getRegion() {
throw new UnsupportedOperationException();
}
@Override
public World getWorld() {
throw new UnsupportedOperationException();
}
}