aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Snowball.h
blob: d78dfadec54605c03d16a58af69eae4c747746b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
using namespace std;

#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, shared_ptr<LivingEntity> mob);
	Snowball(Level *level, double x, double y, double z);

protected:
	virtual void onHit(HitResult *res);
};