summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.h
diff options
context:
space:
mode:
authorGargaj <gargaj@conspiracy.hu>2015-11-10 14:02:07 +0100
committerGargaj <gargaj@conspiracy.hu>2015-12-13 15:16:15 +0100
commit66e65898838e3d5d40dfb225fd6c34f0f354b2e3 (patch)
tree159a72d2f877d4672d1a633853584c5b5e723f21 /src/Blocks/BlockHandler.h
parentMerge pull request #2743 from SafwatHalaby/wart (diff)
downloadcuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.gz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.bz2
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.lz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.xz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.zst
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.zip
Diffstat (limited to 'src/Blocks/BlockHandler.h')
-rw-r--r--src/Blocks/BlockHandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h
index 4a7b76019..41fbc5140 100644
--- a/src/Blocks/BlockHandler.h
+++ b/src/Blocks/BlockHandler.h
@@ -124,7 +124,11 @@ public:
/** Returns if this block drops if it gets destroyed by an unsuitable situation.
Default: true */
virtual bool DoesDropOnUnsuitable(void);
-
+
+ /** Tests if a_Position is inside the block where a_Position is relative to the origin of the block
+ Note that this is considered from a "top-down" perspective i.e. empty spaces on the bottom of a block don't matter */
+ virtual bool IsInsideBlock(const Vector3d & a_Position, const BLOCKTYPE a_BlockType, const NIBBLETYPE a_BlockMeta);
+
/** Called when one of the neighbors gets set; equivalent to MC block update.
By default drops if position no more suitable (CanBeAt(), DoesDropOnUnsuitable(), Drop()),
and wakes up all simulators on the block. */