Skip to content

Waterlogged 5.46.0 ​

interface · pocketmine\block\utils\Waterlogged · source

A block that can share its space with a water source (kelp, seagrass, sea pickles under water).

Like vanilla Bedrock, the water is stored in the second block layer of the subchunk (the "liquid layer"), which the client renders around the block; World keeps that layer in sync when such a block is set or replaced. On the server the block itself stands in for the water: neighbouring water treats it as a source, it spreads water into empty neighbours, and it leaves a water source behind when broken.

Methods ​

isWaterlogged() ​

php
public function isWaterlogged() : bool

Returns whether the block currently holds a water source.

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