mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-04 12:23:13 +00:00
22 lines
402 B
C++
22 lines
402 B
C++
#pragma once
|
|
|
|
#include "../Throwable.h"
|
|
|
|
class HitResult;
|
|
|
|
class ThrownEgg : public Throwable {
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_THROWNEGG; }
|
|
|
|
private:
|
|
void _init();
|
|
|
|
public:
|
|
ThrownEgg(Level* level);
|
|
ThrownEgg(Level* level, std::shared_ptr<LivingEntity> mob);
|
|
ThrownEgg(Level* level, double x, double y, double z);
|
|
|
|
protected:
|
|
virtual void onHit(HitResult* res);
|
|
};
|