Skip to content

OpenDoorGoal 5.47.0 ​

final class · pocketmine\entity\ai\goal\OpenDoorGoal · source

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() : bool

tick() ​

php
public function tick() : void

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