mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 21:53:37 +00:00
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
#pragma once
|
|
#include "BaseEntityTile.h"
|
|
|
|
class ChunkRebuildData;
|
|
class EnchantmentTableTile : public BaseEntityTile {
|
|
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
|
|
virtual bool isCubeShaped();
|
|
virtual void animateTick(Level* level, int x, int y, int z, Random* random);
|
|
virtual bool isSolidRender(bool isServerLevel = false);
|
|
virtual Icon* getTexture(int face, int data);
|
|
virtual std::shared_ptr<TileEntity> newTileEntity(Level* level);
|
|
virtual 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
|
|
virtual void setPlacedBy(Level* level, int x, int y, int z,
|
|
std::shared_ptr<LivingEntity> by,
|
|
std::shared_ptr<ItemInstance> itemInstance);
|
|
virtual void registerIcons(IconRegister* iconRegister);
|
|
};
|