* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
#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);
|
|
};
|