Skip to content

SitWhenOrderedGoal 5.46.0 ​

class · pocketmine\entity\ai\goal\SitWhenOrderedGoal · source

Extends Goal

A tamed animal ordered to sit stays where it is (vanilla behavior.stay_while_sitting).

Properties ​

$animal ​

php
public \pocketmine\entity\animal\TameableAnimal $animal

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\animal\TameableAnimal $animal)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

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