diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/StoneSlabTile.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/StoneSlabTile.h')
| -rw-r--r-- | Minecraft.World/StoneSlabTile.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Minecraft.World/StoneSlabTile.h b/Minecraft.World/StoneSlabTile.h new file mode 100644 index 00000000..4380b04c --- /dev/null +++ b/Minecraft.World/StoneSlabTile.h @@ -0,0 +1,39 @@ +#pragma once +using namespace std; + +#include "HalfSlabTile.h" + +class ChunkRebuildData; + +class StoneSlabTile : public HalfSlabTile +{ + friend ChunkRebuildData; +public: + static const int STONE_SLAB = 0; + static const int SAND_SLAB = 1; + static const int WOOD_SLAB = 2; + static const int COBBLESTONE_SLAB = 3; + static const int BRICK_SLAB = 4; + static const int SMOOTHBRICK_SLAB = 5; + static const int NETHERBRICK_SLAB = 6; + static const int QUARTZ_SLAB = 7; + + static const int SLAB_NAMES_LENGTH = 8; + + static const unsigned int SLAB_NAMES[SLAB_NAMES_LENGTH]; + +private: + Icon *iconSide; + +public: + StoneSlabTile(int id, bool fullSize); + + virtual Icon *getTexture(int face, int data); + + void registerIcons(IconRegister *iconRegister); + virtual int getResource(int data, Random *random, int playerBonusLevel); + virtual unsigned int getDescriptionId(int iData = -1); + virtual int getAuxName(int auxValue); +protected: + virtual shared_ptr<ItemInstance> getSilkTouchItemInstance(int data); +};
\ No newline at end of file |
