PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
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.