aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/LadderTile.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/LadderTile.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.World/LadderTile.h')
-rw-r--r--Minecraft.World/LadderTile.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Minecraft.World/LadderTile.h b/Minecraft.World/LadderTile.h
new file mode 100644
index 00000000..823f35a7
--- /dev/null
+++ b/Minecraft.World/LadderTile.h
@@ -0,0 +1,26 @@
+#pragma once
+#include "Tile.h"
+#include "Definitions.h"
+
+class Random;
+
+class LadderTile : public Tile
+{
+ friend class Tile;
+protected:
+ LadderTile(int id);
+public:
+ virtual AABB *getAABB(Level *level, int x, int y, int z);
+ virtual AABB *getTileAABB(Level *level, int x, int y, int z);
+ 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
+ using Tile::setShape;
+ virtual void setShape(int data);
+ virtual bool blocksLight();
+ virtual bool isSolidRender(bool isServerLevel = false);
+ virtual bool isCubeShaped();
+ virtual int getRenderShape();
+ virtual bool mayPlace(Level *level, int x, int y, int z);
+ virtual int getPlacedOnFaceDataValue(Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, int itemValue);
+ virtual void neighborChanged(Level *level, int x, int y, int z, int type);
+ virtual int getResourceCount(Random* random);
+}; \ No newline at end of file