PocketMine-MP 5.15.1 git-08c6e63aac45a450fe3b437616ee8aa2500e04e2
pocketmine\world\particle\PotionSplashParticle Class Reference
+ Inheritance diagram for pocketmine\world\particle\PotionSplashParticle:
+ Collaboration diagram for pocketmine\world\particle\PotionSplashParticle:

Public Member Functions

 __construct (private Color $color)
 
 encode (Vector3 $pos)
 
 getColor ()
 

Static Public Member Functions

static DEFAULT_COLOR ()
 

Detailed Description

Definition at line 31 of file PotionSplashParticle.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\particle\PotionSplashParticle::__construct ( private Color  $color)

Definition at line 32 of file PotionSplashParticle.php.

Member Function Documentation

◆ DEFAULT_COLOR()

static pocketmine\world\particle\PotionSplashParticle::DEFAULT_COLOR ( )
static

Returns the default water-bottle splash colour.

TODO: replace this with a standard surrogate object constant (first we need to implement them!)

Definition at line 39 of file PotionSplashParticle.php.

◆ encode()

pocketmine\world\particle\PotionSplashParticle::encode ( Vector3  $pos)
Returns
ClientboundPacket[]

Implements pocketmine\world\particle\Particle.

Definition at line 47 of file PotionSplashParticle.php.

◆ getColor()

pocketmine\world\particle\PotionSplashParticle::getColor ( )

Definition at line 43 of file PotionSplashParticle.php.


The documentation for this class was generated from the following file: