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

Method contains

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

Return true if the point at (x,y,z) is contained within this Cuboid. @param x the X co-ordinate @param y the Y co-ordinate @param z the Z co-ordinate @return true if the given point is within this Cuboid, false otherwise

(int x, int y, int z)

Source from the content-addressed store, hash-verified

424 * @return true if the given point is within this Cuboid, false otherwise
425 */
426 public boolean contains(int x, int y, int z) {
427 return x >= x1 && x <= x2 && y >= y1 && y <= y2 && z >= z1 && z <= z2;
428 }
429
430 /**
431 * Check if the given Block is contained within this Cuboid.

Callers 1

getEntitiesMethod · 0.95

Calls 4

getWorldMethod · 0.80
getNameMethod · 0.65
getLocationMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected