summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/RedstonePoweredEntity.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-06 17:14:39 +0200
committerMattes D <github@xoft.cz>2014-08-06 17:14:39 +0200
commiteae42d91f91eadeb9b1d021a685c7cc2b3799ebe (patch)
treecc197b2a677edaa30667e71caae4ee93d5bbd8e5 /src/BlockEntities/RedstonePoweredEntity.h
parentResending fire to the client when the interact cancelled. (diff)
parentFixed style issues (diff)
downloadcuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.gz
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.bz2
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.lz
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.xz
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.zst
cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.zip
Diffstat (limited to 'src/BlockEntities/RedstonePoweredEntity.h')
-rw-r--r--src/BlockEntities/RedstonePoweredEntity.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/BlockEntities/RedstonePoweredEntity.h b/src/BlockEntities/RedstonePoweredEntity.h
new file mode 100644
index 000000000..f11df4fc4
--- /dev/null
+++ b/src/BlockEntities/RedstonePoweredEntity.h
@@ -0,0 +1,13 @@
+
+#pragma once
+
+// Interface class representing a blockEntity that responds to redstone
+class cRedstonePoweredEntity
+{
+public:
+
+ virtual ~cRedstonePoweredEntity() {};
+
+ /// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
+ virtual void SetRedstonePower(bool a_IsPowered) = 0;
+};