From 19ac0811f4c1fbe77867e275ea41710ba86cf64a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 8 May 2019 16:44:18 +0100 Subject: [PATCH] Player: remove deprecated title functions --- src/pocketmine/Player.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 01864d68c..a48bffcb7 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2262,20 +2262,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, return $this->sendDataPacket($packet, false); } - /** - * @deprecated - * @see Player::sendTitle() - * - * @param string $title - * @param string $subtitle - * @param int $fadeIn Duration in ticks for fade-in. If -1 is given, client-sided defaults will be used. - * @param int $stay Duration in ticks to stay on screen for - * @param int $fadeOut Duration in ticks for fade-out. - */ - public function addTitle(string $title, string $subtitle = "", int $fadeIn = -1, int $stay = -1, int $fadeOut = -1){ - $this->sendTitle($title, $subtitle, $fadeIn, $stay, $fadeOut); - } - /** * Adds a title text to the user's screen, with an optional subtitle. * @@ -2293,16 +2279,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, $this->sendDataPacket(SetTitlePacket::title($title)); } - /** - * @deprecated - * @see Player::sendSubTitle() - * - * @param string $subtitle - */ - public function addSubTitle(string $subtitle){ - $this->sendSubTitle($subtitle); - } - /** * Sets the subtitle message, without sending a title. * @@ -2312,16 +2288,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, $this->sendDataPacket(SetTitlePacket::subtitle($subtitle)); } - /** - * @deprecated - * @see Player::sendActionBarMessage() - * - * @param string $message - */ - public function addActionBarMessage(string $message){ - $this->sendActionBarMessage($message); - } - /** * Adds small text to the user's screen. *