Remove deprecated methods

This commit is contained in:
Dylan K. Taylor
2023-01-08 17:07:22 +00:00
parent c2918709a3
commit 9b4b960eb2
2 changed files with 0 additions and 18 deletions

View File

@ -294,16 +294,6 @@ abstract class Living extends Entity{
return $nbt;
}
/**
* @deprecated This function always returns true, no matter whether the target is in the line of sight or not.
* @see VoxelRayTrace::inDirection() for a more generalized method of ray-tracing to a target.
*/
public function hasLineOfSight(Entity $entity) : bool{
//TODO: head height
return true;
//return $this->getLevelNonNull()->rayTraceBlocks(Vector3::createVector($this->x, $this->y + $this->height, $this->z), Vector3::createVector($entity->x, $entity->y + $entity->height, $entity->z)) === null;
}
public function getEffects() : EffectManager{
return $this->effectManager;
}