mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
create readable and writable world interfaces
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user