Files
MinecraftConsoles/Minecraft.World/SmallFireball.h

24 lines
603 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "Fireball.h"
class HitResult;
class SmallFireball : public Fireball
{
public:
eINSTANCEOF GetType() { return eTYPE_SMALL_FIREBALL; }
static Entity *create(Level *level) { return new SmallFireball(level); }
public:
SmallFireball(Level *level);
SmallFireball(Level *level, shared_ptr<LivingEntity> mob, double xa, double ya, double za);
2026-03-01 12:16:08 +08:00
SmallFireball(Level *level, double x, double y, double z, double xa, double ya, double za);
protected:
virtual void onHit(HitResult *res);
public:
virtual bool isPickable();
virtual bool hurt(DamageSource *source, float damage);
2026-03-01 12:16:08 +08:00
};