pocketmine\entity\Entity::setNameTag PHP Method

setNameTag() public method

public setNameTag ( string $name )
$name string
    public function setNameTag($name)
    {
        $this->setDataProperty(self::DATA_NAMETAG, self::DATA_TYPE_STRING, $name);
    }