the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "Entity.h"
3
4class PrimedTnt : public Entity
5{
6public:
7 eINSTANCEOF GetType() { return eTYPE_PRIMEDTNT; };
8 static Entity *create(Level *level) { return new PrimedTnt(level); }
9
10public:
11 static const int serialVersionUID = 0;
12
13 int life;
14 weak_ptr<LivingEntity> owner;
15
16 void _init();
17
18 PrimedTnt(Level *level);
19 PrimedTnt(Level *level, double x, double y, double z, shared_ptr<LivingEntity> owner);
20
21protected:
22 virtual void defineSynchedData();
23 virtual bool makeStepSound();
24
25public:
26 virtual bool isPickable();
27 virtual void tick();
28
29private:
30 void explode();
31
32protected:
33 virtual void addAdditonalSaveData(CompoundTag *entityTag);
34 virtual void readAdditionalSaveData(CompoundTag *tag);
35
36public:
37 virtual float getShadowHeightOffs();
38 virtual shared_ptr<LivingEntity> getOwner();
39};