55945ee975
BlockCollisionScan asked every cursor cell for its collision shape, moved it into place and intersected it with Shapes.create(box), even for air. Mob movement and every other Entity.collide spent most of their time there. Now: - CollisionBlock carries empty_shape, set by the registry for states with no contextual rule and an empty cached shape (air, plants): the scan skips them without asking. Providers that build CollisionBlock themselves (the query-order fixture) leave it false, so their query logs are unchanged. - A shape whose bounds miss the box is skipped before moving it: joinIsNotEmpty(AND) of the two is false anyway. - Shapes.create(box) is built the first time a shape is not the unit cube (finite bounds always make one), not for every scan. - SceneCollisions hands the scan the resident chunk itself, so a cell costs one section read instead of a chunk-map lookup. Results are unchanged: running both paths side by side over 900,000 mob moves in a 600-mob village gave bit-identical movement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>