summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorMarvin Kopf <marvinkopf@posteo.de>2016-12-10 09:53:35 +0100
committerMattes D <github@xoft.cz>2016-12-10 09:53:35 +0100
commitff4be64edc85bffb2fe73790b1ce6413d5449990 (patch)
tree0adccad432a14a8cd9a01a11e5c83fde8b5a58c0 /src/Entities/Minecart.h
parentFix meta mirror (#3470) (diff)
downloadcuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar.gz
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar.bz2
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar.lz
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar.xz
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.tar.zst
cuberite-ff4be64edc85bffb2fe73790b1ce6413d5449990.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index f68b2f72b..f1f499328 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -78,6 +78,8 @@ protected:
void SnapToRail(NIBBLETYPE a_RailMeta);
/** Tests if a solid block is in front of a cart, and stops the cart (and returns true) if so; returns false if no obstruction */
bool TestBlockCollision(NIBBLETYPE a_RailMeta);
+ /** Tests if a solid block is at a specific offset of the minecart position */
+ bool IsSolidBlockAtOffset(int a_XOffset, int a_YOffset, int a_ZOffset);
/** Tests if this mincecart's bounding box is intersecting another entity's bounding box (collision) and pushes mincecart away if necessary */
bool TestEntityCollision(NIBBLETYPE a_RailMeta);