Skip to content

SwellGoal 5.46.0 ​

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

Extends Goal

Creepers start their fuse when their target comes within 2.5 blocks and defuse when it gets farther than 6 blocks or out of sight (vanilla behavior.swell).

Properties ​

$creeper ​

php
public \pocketmine\entity\monster\Creeper $creeper

$startDistance ​

php
public float $startDistance

$stopDistance ​

php
public float $stopDistance

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\monster\Creeper $creeper, float $startDistance = 2.5, float $stopDistance = 6.0)

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

tick() ​

php
public function tick() : void

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