4jcraft/Minecraft.World/Entities/Mobs/Snowball.h
2026-03-21 16:29:02 -05:00

22 lines
468 B
C++

#pragma once
#include "../Throwable.h"
class HitResult;
class Snowball : public Throwable {
public:
eINSTANCEOF GetType() { return eTYPE_SNOWBALL; }
static Entity* create(Level* level) { return new Snowball(level); }
private:
void _init();
public:
Snowball(Level* level);
Snowball(Level* level, std::shared_ptr<LivingEntity> mob);
Snowball(Level* level, double x, double y, double z);
protected:
virtual void onHit(HitResult* res);
};