aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/EnchantmentTableTile.h
blob: 43816ceca6cd531dd47e8b03e93d7aaa7bcb7cf4 (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
27
28
29
#pragma once
#include "EntityTile.h"

class ChunkRebuildData;
class EnchantmentTableTile : public EntityTile
{
	friend class ChunkRebuildData;
public:
	static const wstring TEXTURE_SIDE;
	static const wstring TEXTURE_TOP;
	static const 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);
    shared_ptr<TileEntity> newTileEntity(Level *level);
    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
	//@Override
	void registerIcons(IconRegister *iconRegister);
};