create readable and writable world interfaces

This commit is contained in:
dfsek
2021-11-28 16:35:13 -07:00
parent 402ac166ff
commit da34aeed42
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
package com.dfsek.terra.api.world.access;
import com.dfsek.terra.api.Handle;
public interface ReadableWorld extends Handle {
}

View File

@@ -11,7 +11,7 @@ import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
import com.dfsek.terra.api.world.chunk.generation.ChunkGenerator;
public interface WritableWorld extends Handle {
public interface WritableWorld extends ReadableWorld {
default void setBlockData(Vector3 position, BlockState data, boolean physics) {
setBlockData(position.getBlockX(), position.getBlockY(), position.getBlockZ(), data, physics);
}