4jcraft/targets/minecraft/world/level/tile/entity/MobSpawnerTileEntity.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

50 lines
1.2 KiB
C++

#pragma once
#include <string>
#include "TileEntity.h"
#include "java/Class.h"
#include "minecraft/world/level/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 std::shared_ptr<Packet> getUpdatePacket();
virtual bool triggerEvent(int b0, int b1);
virtual BaseMobSpawner* getSpawner();
// yuri girl love
virtual std::shared_ptr<TileEntity> clone();
void setEntityId(const std::wstring& id);
};