first commit

This commit is contained in:
murdle
2026-03-01 02:38:58 +02:00
commit 19250b9db4
19111 changed files with 4358159 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
#include "TileEntity.h"
class PistonPieceEntity : public TileEntity
{
public:
eINSTANCEOF GetType() { return eTYPE_PISTONPIECEENTITY; }
static TileEntity *create() { return new PistonPieceEntity(); }
private:
int id;
int data;
int facing;
bool extending;
bool _isSourcePiston;
float progress, progressO;
public:
PistonPieceEntity();
PistonPieceEntity(int id, int data, int facing, bool extending, bool isSourcePiston);
int getId();
virtual int getData();
bool isExtending();
int getFacing();
bool isSourcePiston();
float getProgress(float a);
float getXOff(float a);
float getYOff(float a);
float getZOff(float a);
private:
// static List<Entity> collisionHolder = new ArrayList<Entity>(); // 4J - just using local vector for this now
void moveCollidedEntities(float progress, float amount);
public:
void finalTick();
virtual void tick();
virtual void load(CompoundTag *tag);
virtual void save(CompoundTag *tag);
// 4J Added
shared_ptr<TileEntity> clone();
};