mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 07:43:37 +00:00
21 lines
674 B
C++
21 lines
674 B
C++
#pragma once
|
|
#include "BaseEntityTile.h"
|
|
|
|
class Random;
|
|
|
|
class MobSpawnerTile : public BaseEntityTile {
|
|
friend class Tile;
|
|
|
|
protected:
|
|
MobSpawnerTile(int id);
|
|
|
|
public:
|
|
virtual std::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);
|
|
}; |