RaidMoveGoal 5.46.0
Extends Goal
A raider with nothing to attack walks to the centre of the raided village (vanilla behavior.move_to_village), in steps of RaidMoveGoal::STEP blocks so that each path search stays short.
Constants
ARRIVED_DISTANCE
php
public const ARRIVED_DISTANCE = 10.0Distance from the centre at which raiders stop heading there and roam the village.
STEP
php
public const STEP = 12Properties
$mob
php
public \pocketmine\entity\Mob&\pocketmine\entity\monster\Raider $mob$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob&\pocketmine\entity\monster\Raider $mob, float $speedMultiplier = 1.0)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstepTowards()
php
public static function stepTowards(\pocketmine\entity\Mob $mob, \pocketmine\math\Vector3 $target, int $step) : ?\pocketmine\math\Vector3Returns a block where the mob can stand at most $step blocks from it in the direction of $target (or the target itself when closer), or null if there is none.
stop()
php
public function stop() : void