PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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.