Living: deprecated hasLineOfSight()

This commit is contained in:
Dylan K. Taylor 2022-09-28 17:34:51 +01:00
parent b21cd82e94
commit bda0ca23b4
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -294,6 +294,10 @@ 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;