PatrolGoal 5.46.0
Extends Goal
Patrol movement (vanilla pillager.json): the captain walks to a random block up to 512 blocks away at 0.55x speed (behavior.move_to_random_block), picking a new one when it gets within 8 blocks; the other members follow the nearest captain within 64 blocks, staying about 5 blocks from it at 0.8x speed (behavior.follow_target_captain). Long walks are split in steps of RaidMoveGoal::STEP blocks.
Constants
FOLLOWER_SPEED
php
public const FOLLOWER_SPEED = 0.8FOLLOW_DISTANCE
php
public const FOLLOW_DISTANCE = 5.0FOLLOW_RANGE
php
public const FOLLOW_RANGE = 64.0LEADER_SPEED
php
public const LEADER_SPEED = 0.55TARGET_RANGE
php
public const TARGET_RANGE = 512Properties
$mob
php
public \pocketmine\entity\Mob&\pocketmine\entity\monster\Raider $mobMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob&\pocketmine\entity\monster\Raider $mob)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : void