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 Level;
5
6class FallingTile : public Entity
7{
8public:
9 eINSTANCEOF GetType() { return eTYPE_FALLINGTILE;}
10 static Entity *create(Level *level) { return new FallingTile(level); }
11
12 static const int serialVersionUID = 0;
13 int tile;
14 int data;
15 int time;
16 bool dropItem;
17
18private:
19 bool cancelDrop;
20 bool hurtEntities;
21 int fallDamageMax ;
22 float fallDamageAmount;
23
24 // 4J - added for common ctor code
25 void _init();
26
27public:
28 CompoundTag *tileData;
29
30
31 FallingTile(Level *level);
32 FallingTile(Level *level, double x, double y, double z, int tile, int data = 0);
33 ~FallingTile();
34
35protected:
36 virtual bool makeStepSound();
37 virtual void defineSynchedData();
38
39public:
40 virtual bool isPickable();
41 virtual void tick();
42
43protected:
44 void causeFallDamage(float distance);
45 virtual void addAdditonalSaveData(CompoundTag *tag);
46 virtual void readAdditionalSaveData(CompoundTag *tag);
47
48public:
49 virtual float getShadowHeightOffs();
50 Level *getLevel();
51 void setHurtsEntities(bool value);
52 bool displayFireAnimation();
53};