aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Mushroom.h
blob: 260ba0481830c73c6338208f687044b1260f4b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "Bush.h"

class Random;

class Mushroom : public Bush
{
	friend class Tile;
private:
	wstring texture;
protected:
	Mushroom(int id, const wstring &texture);
public:
    virtual void updateDefaultShape(); // 4J Added override
	virtual void tick(Level *level, int x, int y, int z, Random *random);
	virtual bool mayPlace(Level *level, int x, int y, int z);
protected:
	virtual bool mayPlaceOn(int tile);
public:
	virtual bool canSurvive(Level *level, int x, int y, int z);
	bool growTree(Level *level, int x, int y, int z, Random *random);
	void registerIcons(IconRegister *iconRegister);
};