MCPcopy Create free account
hub / github.com/Teneted/Tenet / shift

Method shift

src/main/java/org/bukkit/util/BoundingBox.java:668–673  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.95
getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected