Shifts this bounding box by the given amounts. @param shiftX the shift in x direction @param shiftY the shift in y direction @param shiftZ the shift in z direction @return this bounding box (now shifted)
(double shiftX, double shiftY, double shiftZ)
| 666 | * @return this bounding box (now shifted) |
| 667 | */ |
| 668 | @NotNull |
| 669 | public BoundingBox shift(double shiftX, double shiftY, double shiftZ) { |
| 670 | if (shiftX == 0.0D && shiftY == 0.0D && shiftZ == 0.0D) return this; |
| 671 | return this.resize(this.minX + shiftX, this.minY + shiftY, this.minZ + shiftZ, |
| 672 | this.maxX + shiftX, this.maxY + shiftY, this.maxZ + shiftZ); |
| 673 | } |
| 674 | |
| 675 | /** |
| 676 | * Shifts this bounding box by the given amounts. |