aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ReedTile.h
blob: bc2a036673d69b298dbe1a9345c00883e3eebd5f (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
using namespace std;

#include "Tile.h"
#include "Definitions.h"

class Random;

class ReedTile : public Tile 
{
	friend class Tile;
protected:
	ReedTile(int id);

public:
    virtual void updateDefaultShape(); // 4J Added override
	void tick(Level *level, int x, int y, int z, Random* random);

public:
	bool mayPlace(Level *level, int x, int y, int z);

public:
	void neighborChanged(Level *level, int x, int y, int z, int type);

protected:
	const void checkAlive(Level *level, int x, int y, int z);

public:
	bool canSurvive(Level *level, int x, int y, int z);

public:
	AABB *getAABB(Level *level, int x, int y, int z);

public:
	int getResource(int data, Random *random, int playerBonusLevel);

public:
	bool blocksLight();

public:
	bool isSolidRender(bool isServerLevel = false);

public:
	bool isCubeShaped();

public:
	int getRenderShape();
	virtual int cloneTileId(Level *level, int x, int y, int z);

	// 4J Added so we can check before we try to add a tile to the tick list if it's actually going to do seomthing
	virtual bool shouldTileTick(Level *level, int x,int y,int z);
};