the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Tile.h"
4
5
6class HalfSlabTile : public Tile
7{
8public:
9 static const int TYPE_MASK = 7;
10 static const int TOP_SLOT_BIT = 8;
11
12protected:
13 bool fullSize;
14
15public:
16 HalfSlabTile(int id, bool fullSize, Material *material);
17 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
18 virtual void updateDefaultShape();
19 virtual void addAABBs(Level *level, int x, int y, int z, AABB *box, AABBList *boxes, shared_ptr<Entity> source);
20 virtual bool isSolidRender(bool isServerLevel);
21 virtual int getPlacedOnFaceDataValue(Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, int itemValue);
22 virtual int getResourceCount(Random *random);
23 virtual int getSpawnResourcesAuxValue(int data);
24 virtual bool isCubeShaped();
25 virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
26private:
27 static bool isHalfSlab(int tileId);
28public:
29 virtual int getAuxName(int auxValue) = 0;
30
31 virtual int cloneTileData(Level *level, int x, int y, int z);
32 virtual int cloneTileId(Level *level, int x, int y, int z);
33};