the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Entity.h"
4
5class FireworksRocketEntity : public Entity
6{
7public:
8 eINSTANCEOF GetType() { return eTYPE_FIREWORKS_ROCKET; }
9 static Entity *create(Level *level) { return new FireworksRocketEntity(level); }
10
11private:
12 static const int DATA_ID_FIREWORKS_ITEM = 8;
13
14 int life;
15 int lifetime;
16
17 // constructor needed for level loader
18public:
19 FireworksRocketEntity(Level *level);
20
21protected:
22 virtual void defineSynchedData();
23
24public:
25 virtual bool shouldRenderAtSqrDistance(double distance);
26
27 FireworksRocketEntity(Level *level, double x, double y, double z, shared_ptr<ItemInstance> sourceItem);
28
29 virtual void lerpMotion(double xd, double yd, double zd);
30 virtual void tick();
31 virtual void handleEntityEvent(byte eventId);
32 virtual void addAdditonalSaveData(CompoundTag *tag);
33 virtual void readAdditionalSaveData(CompoundTag *tag);
34 virtual float getShadowHeightOffs();
35 virtual float getBrightness(float a);
36 virtual int getLightColor(float a);
37 virtual bool isAttackable();
38};