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/QuartzBlockTile.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/QuartzBlockTile.h')
| -rw-r--r-- | Minecraft.World/QuartzBlockTile.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Minecraft.World/QuartzBlockTile.h b/Minecraft.World/QuartzBlockTile.h new file mode 100644 index 00000000..bdb5af8b --- /dev/null +++ b/Minecraft.World/QuartzBlockTile.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Tile.h" + +class QuartzBlockTile : public Tile +{ + friend class ChunkRebuildData; +public: + static const int TYPE_DEFAULT = 0; + static const int TYPE_CHISELED = 1; + static const int TYPE_LINES_Y = 2; + static const int TYPE_LINES_X = 3; + static const int TYPE_LINES_Z = 4; + + static const int QUARTZ_BLOCK_NAMES = 5; + + static int BLOCK_NAMES[QUARTZ_BLOCK_NAMES]; + +private: + static const int QUARTZ_BLOCK_TEXTURES = 5; + + static const wstring TEXTURE_TOP; + static const wstring TEXTURE_CHISELED_TOP; + static const wstring TEXTURE_LINES_TOP; + static const wstring TEXTURE_BOTTOM; + static const wstring TEXTURE_NAMES[QUARTZ_BLOCK_TEXTURES]; + + Icon *icons[QUARTZ_BLOCK_TEXTURES]; + Icon *iconChiseledTop; + Icon *iconLinesTop; + Icon *iconTop; + Icon *iconBottom; + +public: + QuartzBlockTile(int id); + + Icon *getTexture(int face, int data); + int getPlacedOnFaceDataValue(Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, int itemValue); + int getSpawnResourcesAuxValue(int data); + +protected: + shared_ptr<ItemInstance> getSilkTouchItemInstance(int data); + +public: + int getRenderShape(); + void registerIcons(IconRegister *iconRegister); +};
\ No newline at end of file |
