the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 40 lines 990 B view raw
1#include "TileEntity.h" 2 3class PistonPieceEntity : public TileEntity 4{ 5public: 6 eINSTANCEOF GetType() { return eTYPE_PISTONPIECEENTITY; } 7 static TileEntity *create() { return new PistonPieceEntity(); } 8private: 9 int id; 10 int data; 11 int facing; 12 bool extending; 13 bool _isSourcePiston; 14 15 float progress, progressO; 16 17public: 18 PistonPieceEntity(); 19 PistonPieceEntity(int id, int data, int facing, bool extending, bool isSourcePiston); 20 int getId(); 21 virtual int getData(); 22 bool isExtending(); 23 int getFacing(); 24 bool isSourcePiston(); 25 float getProgress(float a); 26 float getXOff(float a); 27 float getYOff(float a); 28 float getZOff(float a); 29private: 30// static List<Entity> collisionHolder = new ArrayList<Entity>(); // 4J - just using local vector for this now 31 void moveCollidedEntities(float progress, float amount); 32public: 33 void finalTick(); 34 virtual void tick(); 35 virtual void load(CompoundTag *tag); 36 virtual void save(CompoundTag *tag); 37 38 // 4J Added 39 shared_ptr<TileEntity> clone(); 40};