the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#ifndef NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__
#define NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__
#include "Entity.h"
class HangingEntity : public Entity {
typedef Entity super;
public:
HangingEntity(Level* level);
HangingEntity(Level* level, int xTile, int yTile, int zTile, int dir);
void init();
void setDir(int dir);
void setPosition(int x, int y, int z);
virtual void tick();
virtual bool survives();
bool isPickable();
bool interact(Player* player);
void move(float xa, float ya, float za);
void push(float xa, float ya, float za);
virtual void addAdditonalSaveData(CompoundTag* tag);
virtual void readAdditionalSaveData(CompoundTag* tag);
virtual int getWidth() = 0;
virtual int getHeight() = 0;
virtual void dropItem() = 0;
virtual bool isHangingEntity();
virtual float getBrightness(float a);
virtual bool hurt(Entity* source, int damage);
private:
float offs(int w);
public:
int dir;
int xTile, yTile, zTile;
private:
int checkInterval;
};
#endif /* NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__ */