MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / contains

Method contains

common/buildcraft/lib/misc/data/Box.java:149–156  ·  view source on GitHub ↗
(Vec3d p)

Source from the content-addressed store, hash-verified

147 }
148
149 @Override
150 public boolean contains(Vec3d p) {
151 AxisAlignedBB bb = getBoundingBox();
152 if (p.xCoord < bb.minX || p.xCoord >= bb.maxX) return false;
153 if (p.yCoord < bb.minY || p.yCoord >= bb.maxY) return false;
154 if (p.zCoord < bb.minZ || p.zCoord >= bb.maxZ) return false;
155 return true;
156 }
157
158 public boolean contains(BlockPos i) {
159 return contains(new Vec3d(i));

Callers 3

testContainsVec3dMethod · 0.95
testLeftRotTranslateMethod · 0.95
isValidFromLocationMethod · 0.95

Calls 1

getBoundingBoxMethod · 0.95

Tested by 2

testContainsVec3dMethod · 0.76
testLeftRotTranslateMethod · 0.76