9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-06 15:52:03 +00:00

Update World.java

This commit is contained in:
XiaoMoMi
2025-11-08 16:58:57 +08:00
parent a4fc7832e9
commit a2e5443ecc

View File

@@ -39,6 +39,14 @@ public interface World {
this.setBlockAt(x, y, z, blockState.customBlockState(), flags);
}
default void setBlockAt(BlockPos pos, BlockStateWrapper blockState, int flags) {
this.setBlockAt(pos.x(), pos.y(), pos.z(), blockState, flags);
}
default void setBlockAt(BlockPos pos, ImmutableBlockState blockState, int flags) {
this.setBlockAt(pos.x(), pos.y(), pos.z(), blockState, flags);
}
String name();
Path directory();