Skip to content

DragonFireball 5.46.0 ​

class · pocketmine\entity\projectile\DragonFireball · source

Extends Projectile

Fireball shot by the ender dragon (Bedrock behavior_pack/entities/dragon_fireball.json): flies straight at power 1.3 without gravity and leaves a DragonBreathCloud where it hits. It deals no direct damage.

Constants ​

SPEED ​

php
public const SPEED = 1.3

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\entity\Entity $shootingEntity, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)

canCollideWith() ​

php
public function canCollideWith(\pocketmine\entity\Entity $entity) : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getInitialDragMultiplier() protected ​

php
protected function getInitialDragMultiplier() : float

getInitialGravity() protected ​

php
protected function getInitialGravity() : float

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

isFireProof() ​

php
public function isFireProof() : bool

onHitBlock() protected ​

php
protected function onHitBlock(\pocketmine\block\Block $blockHit, \pocketmine\math\RayTraceResult $hitResult) : void

onHitEntity() protected ​

php
protected function onHitEntity(\pocketmine\entity\Entity $entityHit, \pocketmine\math\RayTraceResult $hitResult) : void

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