You can check if 2 AxisAlignedBB collides with the AxisAlignedBB.intersect() method. You can also get a list of all entities inside an AxisAlignedBB with one of the World.getEntitiesInAABBexcluding() or World.getEntitiesWithinAABB() methods. I hope this answers your question!
I mean its a function that does collision test with AABB against map objects and entities.
It's like Physics.BoxCast in Unity, but is there a function like that in minecraft?
You can check if 2 AxisAlignedBB collides with the AxisAlignedBB.intersect() method. You can also get a list of all entities inside an AxisAlignedBB with one of the World.getEntitiesInAABBexcluding() or World.getEntitiesWithinAABB() methods. I hope this answers your question!