aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/WorkbenchTile.h
blob: 1e7fd4ec7e2a8d3a80110cb34b0a860fdc9b3a42 (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
#pragma once

#include "Tile.h"

class Player;
class ChunkRebuildData;

class WorkbenchTile : public Tile
{
	friend class Tile;
	friend class ChunkRebuildData;
private:
	Icon *iconTop;
	Icon *iconFront;

protected:
	WorkbenchTile(int id);

public:
	Icon *getTexture(int face, int data);
	void registerIcons(IconRegister *iconRegister);

public:
	virtual bool TestUse();
	bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false); // 4J added soundOnly param
};