Files
MinecraftConsoles/Minecraft.World/MobSpawnerTile.h

19 lines
608 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
2026-03-01 11:00:23 -06:00
#include "BaseEntityTile.h"
2026-03-01 12:16:08 +08:00
class Random;
2026-03-01 11:00:23 -06:00
class MobSpawnerTile : public BaseEntityTile
2026-03-01 12:16:08 +08:00
{
friend class Tile;
protected:
MobSpawnerTile(int id);
public:
2026-03-01 11:00:23 -06:00
virtual shared_ptr<TileEntity> newTileEntity(Level *level);
2026-03-01 12:16:08 +08:00
virtual int getResource(int data, Random *random, int playerBonusLevel);
2026-03-01 11:00:23 -06:00
virtual int getResourceCount(Random *random);
virtual bool isSolidRender(bool isServerLevel = false);
virtual bool blocksLight();
2026-03-01 12:16:08 +08:00
virtual void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel);
virtual int cloneTileId(Level *level, int x, int y, int z);
};