Skip to content

HideFromRaidGoal 5.46.0 ​

class · pocketmine\entity\ai\raid\HideFromRaidGoal · source

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.8

Properties ​

$mob ​

php
public \pocketmine\entity\Mob $mob

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

tick() ​

php
public function tick() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.