Contract the Cuboid, returning a Cuboid with any air around the edges removed, just large enough to include all non-air blocks. @return a new Cuboid with no external air blocks
()
| 481 | * @return a new Cuboid with no external air blocks |
| 482 | */ |
| 483 | public Cuboid contract() { |
| 484 | return this.contract(CuboidDirection.Down).contract(CuboidDirection.South).contract(CuboidDirection.East).contract(CuboidDirection.Up).contract(CuboidDirection.North).contract(CuboidDirection.West); |
| 485 | } |
| 486 | |
| 487 | /** |
| 488 | * Contract the Cuboid in the given direction, returning a new Cuboid which has |