Skip to content

BlazeAttackGoal 5.46.0 ​

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

Extends Goal

The blaze's attack (Java BlazeAttackGoal; Bedrock blaze.json: melee 6 within 2 blocks, otherwise bursts of 3 small fireballs 0.3 seconds apart every 3-5 seconds within 48 blocks): it lights up for 3 seconds, shoots three fireballs and cools down for 5 seconds.

Constants ​

BURST_INTERVAL ​

php
public const BURST_INTERVAL = 6

CHARGE_TICKS ​

php
public const CHARGE_TICKS = 60

COOLDOWN_TICKS ​

php
public const COOLDOWN_TICKS = 100

Properties ​

$blaze ​

php
public \pocketmine\entity\monster\Blaze $blaze

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\monster\Blaze $blaze)

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.