Many fixes for buffered extents

This commit is contained in:
Kenzie Togami
2019-07-04 11:43:36 -07:00
parent d27daefd3e
commit 99ee32fe8e
7 changed files with 136 additions and 73 deletions

View File

@ -366,6 +366,28 @@ public final class BlockVector3 {
return shr(n, n, n);
}
/**
* Shift all components left.
*
* @param x the value to shift x by
* @param y the value to shift y by
* @param z the value to shift z by
* @return a new vector
*/
public BlockVector3 shl(int x, int y, int z) {
return at(this.x << x, this.y << y, this.z << z);
}
/**
* Shift all components left by {@code n}.
*
* @param n the value to shift by
* @return a new vector
*/
public BlockVector3 shl(int n) {
return shl(n, n, n);
}
/**
* Get the length of the vector.
*