pocketmine\level\Level::addEntityMotion PHP Method

addEntityMotion() public method

public addEntityMotion ( integer $chunkX, integer $chunkZ, integer $entityId, float $x, float $y, float $z )
$chunkX integer
$chunkZ integer
$entityId integer
$x float
$y float
$z float
    public function addEntityMotion(int $chunkX, int $chunkZ, int $entityId, float $x, float $y, float $z)
    {
        if (!isset($this->motionToSend[$index = Level::chunkHash($chunkX, $chunkZ)])) {
            $this->motionToSend[$index] = [];
        }
        $this->motionToSend[$index][$entityId] = [$entityId, $x, $y, $z];
    }
Level