MoveIndoorsGoal 5.47.0
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.8Methods
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