Remove deprecated stuff

except Permission subscriptions; turns out we still need those
perhaps they should be marked @internal
This commit is contained in:
Dylan K. Taylor
2024-12-19 00:14:18 +00:00
parent a2a2ec9d8b
commit 3e69ee87e4
19 changed files with 2 additions and 376 deletions

View File

@ -1614,25 +1614,6 @@ class World implements ChunkManager{
return $collides;
}
/**
* @deprecated Use {@link World::getBlockCollisionBoxes()} instead (alongside {@link World::getCollidingEntities()}
* if entity collision boxes are also required).
*
* @return AxisAlignedBB[]
* @phpstan-return list<AxisAlignedBB>
*/
public function getCollisionBoxes(Entity $entity, AxisAlignedBB $bb, bool $entities = true) : array{
$collides = $this->getBlockCollisionBoxes($bb);
if($entities){
foreach($this->getCollidingEntities($bb->expandedCopy(0.25, 0.25, 0.25), $entity) as $ent){
$collides[] = clone $ent->boundingBox;
}
}
return $collides;
}
/**
* Computes the percentage of a circle away from noon the sun is currently at. This can be multiplied by 2 * M_PI to
* get an angle in radians, or by 360 to get an angle in degrees.