MCPcopy Create free account
hub / github.com/PaperMC/Paper / copy

Method copy

paper-api/src/main/java/org/bukkit/util/BoundingBox.java:349–353  ·  view source on GitHub ↗

Copies another bounding box. @param other the other bounding box @return this bounding box

(@NotNull BoundingBox other)

Source from the content-addressed store, hash-verified

347 * @return this bounding box
348 */
349 @NotNull
350 public BoundingBox copy(@NotNull BoundingBox other) {
351 Preconditions.checkArgument(other != null, "Other bounding box is null!");
352 return this.resize(other.getMinX(), other.getMinY(), other.getMinZ(), other.getMaxX(), other.getMaxY(), other.getMaxZ());
353 }
354
355 /**
356 * Expands this bounding box by the given values in the corresponding

Callers

nothing calls this directly

Calls 7

resizeMethod · 0.95
getMinXMethod · 0.80
getMinZMethod · 0.80
getMaxXMethod · 0.80
getMaxZMethod · 0.80
getMinYMethod · 0.45
getMaxYMethod · 0.45

Tested by

no test coverage detected