Skip to content

MoveIndoorsGoal 5.47.0 ​

class · pocketmine\entity\ai\villager\MoveIndoorsGoal · source

Extends VillagerGoal

Villagers without a bed seek shelter under a roof in the evening, at night and in the rain (vanilla behavior.move_indoors: priority 6, speed 0.8, timeout_cooldown 8 s). Villagers with a bed go to it instead (see GoHomeGoal, SleepInBedGoal). Looks among a few random spots around for one with a block above it, at most once every 8 seconds.

Constants ​

SPEED ​

php
public const SPEED = 0.8

Methods ​

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

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