aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MobSpawnerTile.h
blob: edf3c5e798a47741d7dc8530c4ea0d54dc26d317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "EntityTile.h"

class Random;

class MobSpawnerTile : public EntityTile
{
	friend class Tile;
protected:
	MobSpawnerTile(int id);
public:
    virtual shared_ptr<TileEntity> newTileEntity(Level *level);
	virtual int getResource(int data, Random *random, int playerBonusLevel);
    virtual int getResourceCount(Random *random);
    virtual bool isSolidRender(bool isServerLevel = false);
    virtual bool blocksLight();
	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);
};