Skip to content

FloatingTextParticle ​

class · pocketmine\world\particle\FloatingTextParticle · source

Implements Particle

Properties ​

$entityId protected ​

php
protected ?int $entityId

$invisible protected ​

php
protected bool $invisible

$text ​

php
public string $text

$title ​

php
public string $title

Methods ​

__construct() ​

php
public function __construct(string $text, string $title = "")

encode() ​

php
public function encode(\pocketmine\math\Vector3 $pos) : array

getText() ​

php
public function getText() : string

getTitle() ​

php
public function getTitle() : string

isInvisible() ​

php
public function isInvisible() : bool

setInvisible() ​

php
public function setInvisible(bool $value = true) : void

setText() ​

php
public function setText(string $text) : void

setTitle() ​

php
public function setTitle(string $title) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.