OwnerHurtByTargetGoal 5.46.0
Extends Goal
A tamed animal attacks whoever hurt its owner (vanilla behavior.owner_hurt_by_target), or, with $ownerAttacks, what its owner attacked (behavior.owner_hurt_target).
Properties
$animal
php
public \pocketmine\entity\animal\TameableAnimal $animal$ownerAttacks
php
public bool $ownerAttacks$range
php
public float $rangeMethods
__construct()
php
public function __construct(\pocketmine\entity\animal\TameableAnimal $animal, bool $ownerAttacks = false, float $range = 32.0)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