22declare(strict_types=1);
27use pocketmine\block\utils\ColoredTrait;
29use pocketmine\block\utils\FallableTrait;
39 if(($water = $this->getAdjacentWater()) !== null){
40 BlockEventHelper::form($this, VanillaBlocks::CONCRETE()->setColor($this->color), $water);
42 $this->startFalling();
47 if($this->getAdjacentWater() === null){
50 return VanillaBlocks::CONCRETE()->setColor($this->color);
53 private function getAdjacentWater() : ?Water{
54 foreach(Facing::ALL as $i){
55 if($i === Facing::DOWN){
58 $block = $this->getSide($i);
59 if($block instanceof Water){