mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 14:27:13 +00:00
32 lines
1,000 B
C++
32 lines
1,000 B
C++
#pragma once
|
|
#include "TileEntities/EntityTile.h"
|
|
|
|
class ChunkRebuildData;
|
|
class EnchantmentTableTile : public EntityTile {
|
|
friend class ChunkRebuildData;
|
|
|
|
public:
|
|
static const std::wstring TEXTURE_SIDE;
|
|
static const std::wstring TEXTURE_TOP;
|
|
static const std::wstring TEXTURE_BOTTOM;
|
|
|
|
private:
|
|
Icon* iconTop;
|
|
Icon* iconBottom;
|
|
|
|
public:
|
|
EnchantmentTableTile(int id);
|
|
|
|
virtual void updateDefaultShape(); // 4J Added override
|
|
bool isCubeShaped();
|
|
void animateTick(Level* level, int x, int y, int z, Random* random);
|
|
bool isSolidRender(bool isServerLevel = false);
|
|
Icon* getTexture(int face, int data);
|
|
std::shared_ptr<TileEntity> newTileEntity(Level* level);
|
|
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
|
|
//@Override
|
|
void registerIcons(IconRegister* iconRegister);
|
|
};
|