HideFromRaidGoal 5.46.0
Extends Goal
Villagers hide during a raid (vanilla villager_v2 behavior.hide, poi_type "bed", speed 0.8): they run to the nearest bed of the raided village and stay there until the raid is over: their own bed if they claimed one, otherwise the nearest bed of the village.
Constants
SPEED
php
public const SPEED = 0.8Properties
$mob
php
public \pocketmine\entity\Mob $mobMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $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() : voidtick()
php
public function tick() : void