mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-23 21:42:20 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
using namespace std;
|
||||
|
||||
#include "TileEntity.h"
|
||||
#include "BaseMobSpawner.h"
|
||||
|
||||
class Packet;
|
||||
class Entity;
|
||||
|
||||
class MobSpawnerTileEntity : public TileEntity
|
||||
{
|
||||
public:
|
||||
eINSTANCEOF GetType() { return eTYPE_MOBSPAWNERTILEENTITY; }
|
||||
static TileEntity *create() { return new MobSpawnerTileEntity(); }
|
||||
|
||||
private:
|
||||
class TileEntityMobSpawner : public BaseMobSpawner
|
||||
{
|
||||
private:
|
||||
MobSpawnerTileEntity *m_parent;
|
||||
|
||||
public:
|
||||
TileEntityMobSpawner(MobSpawnerTileEntity *parent);
|
||||
|
||||
void broadcastEvent(int id);
|
||||
Level *getLevel();
|
||||
int getX();
|
||||
int getY();
|
||||
int getZ();
|
||||
void setNextSpawnData(BaseMobSpawner::SpawnData *nextSpawnData);
|
||||
};
|
||||
|
||||
BaseMobSpawner *spawner;
|
||||
|
||||
public:
|
||||
MobSpawnerTileEntity();
|
||||
~MobSpawnerTileEntity();
|
||||
|
||||
virtual void load(CompoundTag *tag);
|
||||
virtual void save(CompoundTag *tag);
|
||||
virtual void tick();
|
||||
virtual shared_ptr<Packet> getUpdatePacket();
|
||||
virtual bool triggerEvent(int b0, int b1);
|
||||
virtual BaseMobSpawner *getSpawner();
|
||||
|
||||
// 4J Added
|
||||
virtual shared_ptr<TileEntity> clone();
|
||||
void setEntityId(const wstring &id);
|
||||
};
|
||||
Reference in new issue
Block a user