entity collisions

This commit is contained in:
GameHerobrine 2024-03-24 01:52:15 +03:00
parent 2ce333af5e
commit 3b15c26b0c
13 changed files with 104 additions and 34 deletions

View file

@ -630,7 +630,10 @@ class Level{
}
return $ents;
}
/**
* @param AxisAlignedBB $bb
* @return Entity[]
*/
public function getEntitiesInAABB(AxisAlignedBB $bb){
$minChunkX = ((int)($bb->minX)) >> 4;
$minChunkZ = ((int)($bb->minZ)) >> 4;