diff --git a/src/entity/Living.php b/src/entity/Living.php index 34a297578..09e609b84 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -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; } diff --git a/src/player/Player.php b/src/player/Player.php index 702992b0b..4281df2b8 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -2013,14 +2013,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ $this->getNetworkSession()->onChatMessage($message); } - /** - * @deprecated Use {@link Player::sendMessage()} with a Translatable instead. - * @param string[]|Translatable[] $parameters - */ - public function sendTranslation(string $message, array $parameters = []) : void{ - $this->sendMessage(new Translatable($message, $parameters)); - } - /** * @param string[] $args */