aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ThrownEnderpearl.h
blob: 6f16ebfc4f1a8c2eca18d1ca9b532d12a5ad5d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "Throwable.h"

class HitResult;

class ThrownEnderpearl : public Throwable
{
public:
	eINSTANCEOF GetType() { return eTYPE_THROWNENDERPEARL; }
	static Entity *create(Level *level) { return new ThrownEnderpearl(level); }

	ThrownEnderpearl(Level *level);
	ThrownEnderpearl(Level *level, shared_ptr<Mob> mob);
	ThrownEnderpearl(Level *level, double x, double y, double z);

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