Rename TranslationContainer -> Translatable

This commit is contained in:
Dylan K. Taylor
2021-08-15 16:17:46 +01:00
parent 5bdcc0339f
commit 789a669395
16 changed files with 757 additions and 757 deletions

View File

@ -23,7 +23,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\lang\TranslationContainer;
use pocketmine\lang\Translatable;
use pocketmine\player\Player;
/**
@ -34,19 +34,19 @@ use pocketmine\player\Player;
* @see PlayerLoginEvent
*/
class PlayerJoinEvent extends PlayerEvent{
/** @var string|TranslationContainer */
/** @var string|Translatable */
protected $joinMessage;
public function __construct(Player $player, TranslationContainer|string $joinMessage){
public function __construct(Player $player, Translatable|string $joinMessage){
$this->player = $player;
$this->joinMessage = $joinMessage;
}
public function setJoinMessage(TranslationContainer|string $joinMessage) : void{
public function setJoinMessage(Translatable|string $joinMessage) : void{
$this->joinMessage = $joinMessage;
}
public function getJoinMessage() : TranslationContainer|string{
public function getJoinMessage() : Translatable|string{
return $this->joinMessage;
}
}