Skip to content

MoveToLandGoal 5.47.0 ​

class · pocketmine\entity\ai\goal\MoveToLandGoal · source

Extends MoveToBlockGoal

Goes ashore when in water (vanilla behavior.move_to_land: adult turtles, frogs): walks or swims to the nearest dry spot it can stand on.

Methods ​

findTarget() protected ​

php
protected function findTarget(int $x, int $y, int $z) : ?\pocketmine\math\Vector3

wantsToMove() protected ​

php
protected function wantsToMove() : bool

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.