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

class Random;

class Mushroom : public Bush
{
	friend class Tile;
protected:
	Mushroom(int id);
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);
};