PotionSplashParticle
in package
implements
Particle
Interfaces, Classes, Traits and Enums
Table of Contents
- $color : Color
- __construct() : mixed
- DEFAULT_COLOR() : Color
- Returns the default water-bottle splash colour.
- encode() : array<string|int, ClientboundPacket>
- getColor() : Color
Properties
$color
private
Color
$color
Methods
__construct()
public
__construct(Color $color) : mixed
Parameters
- $color : Color
Return values
mixed —DEFAULT_COLOR()
Returns the default water-bottle splash colour.
public
static DEFAULT_COLOR() : Color
TODO: replace this with a standard surrogate object constant (first we need to implement them!)
Return values
Color —encode()
public
encode(Vector3 $pos) : array<string|int, ClientboundPacket>
Parameters
- $pos : Vector3
Return values
array<string|int, ClientboundPacket> —getColor()
public
getColor() : Color