GhastShootGoal 5.46.0
Extends Goal
The ghast's fireballs (Java GhastShootFireballGoal, Bedrock behavior.ranged_attack with charge triggers): while it sees its target within 64 blocks it charges for 20 ticks (opening its mouth after 10, with a warning sound) and shoots, then waits 40 ticks. Without line of sight the charge winds down.
Constants
COOLDOWN
php
public const COOLDOWN = 40RANGE
php
public const RANGE = 64.0SHOOT_TICK
php
public const SHOOT_TICK = 20WARN_TICK
php
public const WARN_TICK = 10Properties
$ghast
php
public \pocketmine\entity\monster\Ghast $ghastMethods
__construct()
php
public function __construct(\pocketmine\entity\monster\Ghast $ghast)canStart()
php
public function canStart() : boolgetChargeTime()
php
public function getChargeTime() : intgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void