MCPcopy Index your code
hub / github.com/PaperMC/Paper / resize

Method resize

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

Resizes this bounding box. @param x1 the first corner's x value @param y1 the first corner's y value @param z1 the first corner's z value @param x2 the second corner's x value @param y2 the second corner's y value @param z2 the second corner's z value @return this bounding box (resized)

(double x1, double y1, double z1, double x2, double y2, double z2)

Source from the content-addressed store, hash-verified

176 * @return this bounding box (resized)
177 */
178 @NotNull
179 public BoundingBox resize(double x1, double y1, double z1, double x2, double y2, double z2) {
180 NumberConversions.checkFinite(x1, "x1 not finite");
181 NumberConversions.checkFinite(y1, "y1 not finite");
182 NumberConversions.checkFinite(z1, "z1 not finite");
183 NumberConversions.checkFinite(x2, "x2 not finite");
184 NumberConversions.checkFinite(y2, "y2 not finite");
185 NumberConversions.checkFinite(z2, "z2 not finite");
186
187 this.minX = Math.min(x1, x2);
188 this.minY = Math.min(y1, y2);
189 this.minZ = Math.min(z1, z2);
190 this.maxX = Math.max(x1, x2);
191 this.maxY = Math.max(y1, y2);
192 this.maxZ = Math.max(z1, z2);
193 return this;
194 }
195
196 /**
197 * Gets the minimum x value.

Callers 6

BoundingBoxMethod · 0.95
copyMethod · 0.95
expandMethod · 0.95
unionMethod · 0.95
intersectionMethod · 0.95
shiftMethod · 0.95

Calls 1

checkFiniteMethod · 0.95

Tested by

no test coverage detected