Skip to content

MinimumCostFlowCalculator ​

final class · pocketmine\block\utils\MinimumCostFlowCalculator · source

Calculates the path(s) of least resistance for liquid flow.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, int $flowDecayPerBlock, \Closure $canFlowInto)

getOptimalFlowDirections() ​

php
public function getOptimalFlowDirections(int $originX, int $originY, int $originZ) : array

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