diff options
author | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
commit | 4b1505f39d6a77b0fd389d1170a1dcc901f602cd (patch) | |
tree | 036067995500e4d770eeecbf3e3b9b791d604bb5 /src/BlockEntities/RedstonePoweredEntity.h | |
parent | Debuggers: Simple cRankManager test case. (diff) | |
parent | Merge pull request #1295 from mc-server/crystal (diff) | |
download | cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.gz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.bz2 cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.lz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.xz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.zst cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.zip |
Diffstat (limited to 'src/BlockEntities/RedstonePoweredEntity.h')
-rw-r--r-- | src/BlockEntities/RedstonePoweredEntity.h | 13 |
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; +}; |