mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-24 05:52:19 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,48 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
class HangingEntity : public Entity
|
||||
{
|
||||
public:
|
||||
eINSTANCEOF GetType() { return eTYPE_HANGING_ENTITY; }
|
||||
private:
|
||||
|
||||
void _init(Level *level);
|
||||
|
||||
int checkInterval;
|
||||
//eINSTANCEOF eType;
|
||||
|
||||
protected:
|
||||
virtual void defineSynchedData() {};
|
||||
|
||||
public:
|
||||
int dir;
|
||||
int xTile, yTile, zTile;
|
||||
|
||||
HangingEntity(Level *level);
|
||||
HangingEntity(Level *level, int xTile, int yTile, int zTile, int dir);
|
||||
void setDir(int dir);
|
||||
virtual bool survives();
|
||||
|
||||
private:
|
||||
float offs(int w);
|
||||
|
||||
public:
|
||||
virtual void tick();
|
||||
virtual bool isPickable();
|
||||
virtual bool skipAttackInteraction(shared_ptr<Entity> source);
|
||||
virtual bool hurt(DamageSource *source, float damage);
|
||||
virtual void move(double xa, double ya, double za, bool noEntityCubes=false); // 4J - added noEntityCubes parameter
|
||||
virtual void push(double xa, double ya, double za);
|
||||
virtual void addAdditonalSaveData(CompoundTag *tag);
|
||||
virtual void readAdditionalSaveData(CompoundTag *tag);
|
||||
|
||||
virtual int getWidth()=0;
|
||||
virtual int getHeight()=0;
|
||||
virtual void dropItem(shared_ptr<Entity> causedBy)=0;
|
||||
|
||||
protected:
|
||||
virtual bool repositionEntityAfterLoad();
|
||||
};
|
||||
Reference in new issue
Block a user