Player: remove deprecated title functions

This commit is contained in:
Dylan K. Taylor 2019-05-08 16:44:18 +01:00
parent a331c5e13f
commit 19ac0811f4

View File

@ -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.
*