SmallFireball 5.46.0
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 = 5Methods
__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) : 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