Skip to content

LeapAtTargetGoal 5.46.0 ​

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

Extends Goal

Pounces at the target when it's a few blocks away (vanilla behavior.leap_at_target, used by spiders).

Properties ​

$mob ​

php
public \pocketmine\entity\Mob $mob

$yd ​

php
public float $yd

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob, float $yd = 0.4)

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.