DragonFireball 5.46.0
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.3Methods
__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) : boolentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetInitialDragMultiplier() protected
php
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
php
protected function getInitialGravity() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetNetworkTypeId()
php
public static function getNetworkTypeId() : stringisFireProof()
php
public function isFireProof() : boolonHitBlock() protected
php
protected function onHitBlock(\pocketmine\block\Block $blockHit, \pocketmine\math\RayTraceResult $hitResult) : voidonHitEntity() protected
php
protected function onHitEntity(\pocketmine\entity\Entity $entityHit, \pocketmine\math\RayTraceResult $hitResult) : void