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

Method getBoundingBox

common/buildcraft/lib/misc/data/Box.java:207–209  ·  view source on GitHub ↗

IMPORTANT: Use #contains(Vec3d)instead of the returned AxisAlignedBB#isVecInside(Vec3d) as the logic is different!

()

Source from the content-addressed store, hash-verified

205 /** IMPORTANT: Use {@link #contains(Vec3d)}instead of the returned {@link AxisAlignedBB#isVecInside(Vec3d)} as the
206 * logic is different! */
207 public AxisAlignedBB getBoundingBox() {
208 return new AxisAlignedBB(min, max.add(VecUtil.POS_ONE));
209 }
210
211 public Box extendToEncompass(Vec3d toBeContained) {
212 setMin(VecUtil.min(min, VecUtil.convertFloor(toBeContained)));

Callers 3

getRenderBoundingBoxMethod · 0.95
containsMethod · 0.95
updateMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected