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/Mushroom.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/Mushroom.h')
| -rw-r--r-- | Minecraft.World/Mushroom.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Minecraft.World/Mushroom.h b/Minecraft.World/Mushroom.h new file mode 100644 index 00000000..260ba048 --- /dev/null +++ b/Minecraft.World/Mushroom.h @@ -0,0 +1,23 @@ +#pragma once +#include "Bush.h" + +class Random; + +class Mushroom : public Bush +{ + friend class Tile; +private: + wstring texture; +protected: + Mushroom(int id, const wstring &texture); +public: + virtual void updateDefaultShape(); // 4J Added override + virtual void tick(Level *level, int x, int y, int z, Random *random); + virtual bool mayPlace(Level *level, int x, int y, int z); +protected: + virtual bool mayPlaceOn(int tile); +public: + virtual bool canSurvive(Level *level, int x, int y, int z); + bool growTree(Level *level, int x, int y, int z, Random *random); + void registerIcons(IconRegister *iconRegister); +}; |
