FloatingTextParticle
implements
Particle
Interfaces, Classes, Traits and Enums
- Particle
Table of Contents
-
$entityId
: int|null
-
$invisible
: bool
-
$text
: string
-
$title
: string
-
__construct()
: mixed
-
encode()
: array<string|int, ClientboundPacket>
-
getText()
: string
-
getTitle()
: string
-
isInvisible()
: bool
-
setInvisible()
: void
-
setText()
: void
-
setTitle()
: void
$entityId
protected
int|null
$entityId
= null
$invisible
protected
bool
$invisible
= false
$text
protected
string
$text
$title
protected
string
$title
__construct()
public
__construct(string $text[, string $title = "" ]) : mixed
Parameters
-
$text
: string
-
-
$title
: string
= ""
-
Return values
mixed
—
encode()
public
encode(Vector3 $pos) : array<string|int, ClientboundPacket>
Parameters
-
$pos
: Vector3
-
Return values
array<string|int, ClientboundPacket>
—
getText()
public
getText() : string
Return values
string
—
getTitle()
public
getTitle() : string
Return values
string
—
isInvisible()
public
isInvisible() : bool
Return values
bool
—
setInvisible()
public
setInvisible([bool $value = true ]) : void
Parameters
-
$value
: bool
= true
-
Return values
void
—
setText()
public
setText(string $text) : void
Parameters
-
$text
: string
-
Return values
void
—
setTitle()
public
setTitle(string $title) : void
Parameters
-
$title
: string
-
Return values
void
—