Initial commit

This commit is contained in:
Stillkill committed 2026-03-08 15:20:20 -05:00
commit 2dfcaaa842
5375 files changed
+978475

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
#pragma once
#include "Entity.h"
class PrimedTnt : public Entity
{
public:
eINSTANCEOF GetType() { return eTYPE_PRIMEDTNT; };
static Entity *create(Level *level) { return new PrimedTnt(level); }
public:
static const int serialVersionUID = 0;
int life;
weak_ptr<LivingEntity> owner;
void _init();
PrimedTnt(Level *level);
PrimedTnt(Level *level, double x, double y, double z, shared_ptr<LivingEntity> owner);
protected:
virtual void defineSynchedData();
virtual bool makeStepSound();
public:
virtual bool isPickable();
virtual void tick();
private:
void explode();
protected:
virtual void addAdditonalSaveData(CompoundTag *entityTag);
virtual void readAdditionalSaveData(CompoundTag *tag);
public:
virtual float getShadowHeightOffs();
virtual shared_ptr<LivingEntity> getOwner();
};