PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private World $world, private int $flowDecayPerBlock, private \Closure $canFlowInto) | |
getOptimalFlowDirections (int $originX, int $originY, int $originZ) | |
Calculates the path(s) of least resistance for liquid flow.
Definition at line 36 of file MinimumCostFlowCalculator.php.
pocketmine\block\utils\MinimumCostFlowCalculator::__construct | ( | private World | $world, |
private int | $flowDecayPerBlock, | ||
private \Closure | $canFlowInto ) |
@phpstan-param \Closure(Block) : bool $canFlowInto
Definition at line 48 of file MinimumCostFlowCalculator.php.
pocketmine\block\utils\MinimumCostFlowCalculator::getOptimalFlowDirections | ( | int | $originX, |
int | $originY, | ||
int | $originZ ) |
Definition at line 101 of file MinimumCostFlowCalculator.php.