Shift the Cuboid in the given direction by the given amount. @param dir the direction in which to shift @param amount the number of blocks by which to shift @return a new Cuboid shifted by the given direction and amount
(CuboidDirection dir, int amount)
| 373 | * @return a new Cuboid shifted by the given direction and amount |
| 374 | */ |
| 375 | public Cuboid shift(CuboidDirection dir, int amount) { |
| 376 | return expand(dir, amount).expand(dir.opposite(), -amount); |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Outset (grow) the Cuboid in the given direction by the given amount. |