December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -1,11 +1,12 @@
#pragma once
#include "Entity.h"
#include "Projectile.h"
class Mob;
class HitResult;
class Throwable : public Entity
class Throwable : public Entity, public Projectile
{
private:
int xTile;
@@ -19,10 +20,10 @@ protected:
public:
int shakeTime;
protected:
shared_ptr<Mob> owner;
shared_ptr<LivingEntity> owner;
private:
wstring ownerName;
int life;
int flightTime;
@@ -37,7 +38,7 @@ protected:
public:
virtual bool shouldRenderAtSqrDistance(double distance);
Throwable(Level *level, shared_ptr<Mob> mob);
Throwable(Level *level, shared_ptr<LivingEntity> mob);
Throwable(Level *level, double x, double y, double z);
protected:
@@ -57,4 +58,5 @@ public:
virtual void addAdditonalSaveData(CompoundTag *tag);
virtual void readAdditionalSaveData(CompoundTag *tag);
virtual float getShadowHeightOffs();
virtual shared_ptr<LivingEntity> getOwner();
};