Make BaseBlock more memory efficient, and make it clear in the API that it's not intended to be used for every single block.

This commit is contained in:
Matthew Miller
2018-08-10 20:29:06 +10:00
committed by IronApollo
parent 4d6045813c
commit 628c9cc0b7
185 changed files with 307 additions and 268 deletions

View File

@ -110,11 +110,11 @@ public interface Region extends Iterable<BlockVector3>, Cloneable {
default boolean contains(int x, int y, int z) {
return contains(new BlockVector3(x, y, z));
return contains(BlockVector3.at(x, y, z));
}
default boolean contains(int x, int z) {
return contains(new BlockVector3(x, 0, z));
return contains(BlockVector3.at(x, 0, z));
}
default boolean isGlobal() {