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

Method shift

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

contractMethod · 0.95

Calls 2

expandMethod · 0.95
oppositeMethod · 0.80

Tested by

no test coverage detected