pocketmine\block\Block::canBeFlowedInto PHP Method

canBeFlowedInto() public method

AKA: Block->isFlowable
public canBeFlowedInto ( ) : boolean
return boolean
    public function canBeFlowedInto()
    {
        return false;
    }

Usage Example

Example #1
0
 private function flowIntoBlock(Block $block, $newFlowDecay)
 {
     //So this the actual block setting
     if ($block->canBeFlowedInto()) {
         if ($block->getId() > 0) {
             $this->getLevel()->useBreakOn($block);
         }
         $this->getLevel()->setBlock($block, Block::get($this->getId(), $newFlowDecay), true);
         //if($newFlowDecay >= 0){ //This should actually be added somewhere else, now no water will go away
         $this->getLevel()->scheduleUpdate($block, $this->tickRate());
         //}
     }
 }
All Usage Examples Of pocketmine\block\Block::canBeFlowedInto