Skip to content

SmallFireball 5.46.0 ​

class · pocketmine\entity\projectile\SmallFireball · source

Extends Throwable

Small fireball, as shot by dispensers firing a fire charge (blazes don't exist here).

Vanilla (https://minecraft.wiki/w/Fire_Charge): deals 5 damage and sets the entity hit on fire for 5 seconds, or places fire on the face of the block hit. Approximation: it flies at a constant speed with no gravity or drag (vanilla fireballs accelerate towards a terminal speed).

Constants ​

FIRE_SECONDS ​

php
public const FIRE_SECONDS = 5

Methods ​

__construct() ​

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

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.