Files
MinecraftConsoles/Minecraft.World/ThrownEnderpearl.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

19 lines
450 B
C++

#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, std::shared_ptr<Mob> mob);
ThrownEnderpearl(Level *level, double x, double y, double z);
protected:
virtual void onHit(HitResult *res);
};