MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / contract

Method contract

src/main/java/com/volmit/adapt/util/Cuboid.java:483–485  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 10

getFaceMethod · 0.95
containsOnlyMethod · 0.95
getLowerYMethod · 0.95
shiftMethod · 0.95
getUpperYMethod · 0.95
getLowerXMethod · 0.95
getUpperXMethod · 0.95
getLowerZMethod · 0.95
getUpperZMethod · 0.95
oppositeMethod · 0.80

Tested by

no test coverage detected