mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
create readable and writable world interfaces
This commit is contained in:
1 parent
402ac166ff
commit
da34aeed42
2 files changed
+8
-1
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
package com.dfsek.terra.api.world.access;
|
||||||
|
|
||||||
|
import com.dfsek.terra.api.Handle;
|
||||||
|
|
||||||
|
|
||||||
|
public interface ReadableWorld extends Handle {
|
||||||
|
}
|
||||||
@@ -11,7 +11,7 @@ import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
|
|||||||
import com.dfsek.terra.api.world.chunk.generation.ChunkGenerator;
|
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) {
|
default void setBlockData(Vector3 position, BlockState data, boolean physics) {
|
||||||
setBlockData(position.getBlockX(), position.getBlockY(), position.getBlockZ(), data, physics);
|
setBlockData(position.getBlockX(), position.getBlockY(), position.getBlockZ(), data, physics);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user