the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "DirectionalTile.h"
3
4class FenceGateTile : public DirectionalTile
5{
6private:
7 static const int OPEN_BIT = 4;
8
9public:
10 FenceGateTile(int id);
11 Icon *getTexture(int face, int data);
12 virtual bool mayPlace(Level *level, int x, int y, int z);
13 virtual AABB *getAABB(Level *level, int x, int y, int z);
14 virtual void updateShape(LevelSource *level, int x, int y, int z, int forceData = -1, shared_ptr<TileEntity> forceEntity = shared_ptr<TileEntity>()); // 4J added forceData, forceEntity param // Brought forward from 1.2.3
15 virtual bool blocksLight();
16 virtual bool isSolidRender(bool isServerLevel = false);
17 virtual bool isCubeShaped();
18 virtual bool isPathfindable(LevelSource *level, int x, int y, int z);
19 virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
20 virtual int getRenderShape();
21 virtual void setPlacedBy(Level *level, int x, int y, int z, shared_ptr<LivingEntity> by, shared_ptr<ItemInstance> itemInstance);
22 virtual 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
23 virtual void neighborChanged(Level *level, int x, int y, int z, int type);
24 static bool isOpen(int data);
25 void registerIcons(IconRegister *iconRegister);
26};