aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ThinFenceTile.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/ThinFenceTile.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.World/ThinFenceTile.h')
-rw-r--r--Minecraft.World/ThinFenceTile.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Minecraft.World/ThinFenceTile.h b/Minecraft.World/ThinFenceTile.h
new file mode 100644
index 00000000..ca3c501f
--- /dev/null
+++ b/Minecraft.World/ThinFenceTile.h
@@ -0,0 +1,32 @@
+#pragma once
+#include "Tile.h"
+#include "Definitions.h"
+
+class ThinFenceTile : public Tile
+{
+private:
+ wstring edgeTexture;
+ bool dropsResources;
+ wstring texture;
+ Icon *iconSide;
+
+public:
+ ThinFenceTile(int id, const wstring &tex, const wstring &edgeTex, Material *material, bool dropsResources);
+ virtual int getResource(int data, Random *random, int playerBonusLevel);
+ virtual bool isSolidRender(bool isServerLevel = false);
+ virtual bool isCubeShaped();
+ virtual int getRenderShape();
+ virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
+ virtual void addAABBs(Level *level, int x, int y, int z, AABB *box, AABBList *boxes, shared_ptr<Entity> source);
+ virtual void updateDefaultShape();
+ 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
+ virtual Icon *getEdgeTexture();
+ bool attachsTo(int tile);
+
+protected:
+ bool isSilkTouchable();
+ shared_ptr<ItemInstance> getSilkTouchItemInstance(int data);
+
+public:
+ void registerIcons(IconRegister *iconRegister);
+};