2026-03-01 12:16:08 +08:00
|
|
|
#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();
|
2026-03-02 17:37:16 +07:00
|
|
|
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
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|