OpenDoorGoal 5.47.0
Extends Goal
Opens the wooden doors on the mob's path and closes them behind it (vanilla minecraft:annotation.open_door and navigation can_open_doors: piglins, piglin brutes, copper golems, evokers, zombified piglins; see DoorInteraction). Its paths go through closed doors (this sets \pocketmine\entity\ai\navigation\PathFinder::setCanOpenDoors()).
Runs only while a door is in the next nodes of the mob's path or it still has doors to close behind it, and holds no control flag.
Methods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob)canStart()
php
public function canStart() : booltick()
php
public function tick() : void