mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 06:43:35 +00:00
28 lines
616 B
C++
28 lines
616 B
C++
#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, std::shared_ptr<Player> player,
|
|
int clickedFace, float clickX, float clickY, float clickZ,
|
|
bool soundOnly = false); // 4J added soundOnly param
|
|
}; |