Skip to content

GhastShootGoal 5.46.0 ​

class · pocketmine\entity\ai\hostile\goal\GhastShootGoal · source

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 = 40

RANGE ​

php
public const RANGE = 64.0

SHOOT_TICK ​

php
public const SHOOT_TICK = 20

WARN_TICK ​

php
public const WARN_TICK = 10

Properties ​

$ghast ​

php
public \pocketmine\entity\monster\Ghast $ghast

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\monster\Ghast $ghast)

canStart() ​

php
public function canStart() : bool

getChargeTime() ​

php
public function getChargeTime() : int

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.