meta = $meta; } public function getName() : string{ return "Water"; } public function getLightFilter() : int{ return 2; } public function tickRate() : int{ return 5; } public function onEntityCollide(Entity $entity) : void{ $entity->resetFallDistance(); if($entity->fireTicks > 0){ $entity->extinguish(); } $entity->resetFallDistance(); } public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{ $ret = $this->getLevel()->setBlock($this, $this, true, false); $this->getLevel()->scheduleDelayedBlockUpdate($this, $this->tickRate()); return $ret; } }