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

class WaterlilyTile : public Bush
{
private:
	// static const int col = 0x208030;

public:
	WaterlilyTile(int id);
    virtual void updateDefaultShape(); // 4J Added override

	virtual int getRenderShape();
	virtual void addAABBs(Level *level, int x, int y, int z, AABB *box, AABBList *boxes, shared_ptr<Entity> source);
    virtual AABB *getAABB(Level *level, int x, int y, int z);
    virtual int getColor() const;
    virtual int getColor(int auxData);
    virtual int getColor(LevelSource *level, int x, int y, int z);
	virtual int getColor(LevelSource *level, int x, int y, int z, int data); // 4J added
protected:
	virtual bool mayPlaceOn(int tile);
    virtual bool canSurvive(Level *level, int x, int y, int z);
    bool growTree(Level *level, int x, int y, int z, Random *random);
};