Skip to content

CreakingHeartTrailParticle 5.46.0 ​

class · pocketmine\world\particle\CreakingHeartTrailParticle · source

Implements Particle

Orange and grey particles flowing between a creaking and its creaking heart when the creaking is hit (LevelEvent ParticleCreakingHeartTrail, 9816). The position passed to World::addParticle() is the creaking's; the tags are the ones GeyserMC sends (the heart end is the block's corner, the client offsets it).

Constants ​

LEVEL_EVENT_ID ​

php
public const LEVEL_EVENT_ID = 9816

LevelEvent::ParticleCreakingHeartTrail (Mojang protocol docs, changelog 766), missing from BedrockProtocol

Methods ​

__construct() ​

php
public function __construct(\pocketmine\math\Vector3 $heartPos, int $amount = 20)

encode() ​

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

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