diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-28 21:44:34 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-28 21:44:34 +0200 |
commit | 61cb08b54698e9b70f629858a6a9c5b389db8b3e (patch) | |
tree | 6d43e221dd0e883c653fc22a3a27628f64b3d294 /src/Blocks/BlockTripwire.h | |
parent | Added more block exceptions to torches (diff) | |
download | cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.gz cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.bz2 cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.lz cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.xz cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.zst cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockTripwire.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Blocks/BlockTripwire.h b/src/Blocks/BlockTripwire.h new file mode 100644 index 000000000..3ab17bf4a --- /dev/null +++ b/src/Blocks/BlockTripwire.h @@ -0,0 +1,32 @@ + +#pragma once + +#include "BlockHandler.h" + + + + + +class cBlockTripwireHandler : + public cBlockHandler +{ +public: + cBlockTripwireHandler(BLOCKTYPE a_BlockType) + : cBlockHandler(a_BlockType) + { + } + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + a_Pickups.push_back(cItem(E_ITEM_STRING, 1, 0)); + } + + virtual const char * GetStepSound(void) override + { + return ""; + } +}; + + + + |