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/Items/ItemString.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 'src/Items/ItemString.h')
-rw-r--r-- | src/Items/ItemString.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Items/ItemString.h b/src/Items/ItemString.h new file mode 100644 index 000000000..a97fbe0ce --- /dev/null +++ b/src/Items/ItemString.h @@ -0,0 +1,39 @@ + +#pragma once + +#include "ItemHandler.h" + + + + + +class cItemStringHandler : + public cItemHandler +{ +public: + cItemStringHandler(int a_ItemType) : + cItemHandler(a_ItemType) + { + } + + virtual bool IsPlaceable(void) override + { + return true; + } + + virtual bool GetPlacementBlockTypeMeta( + cWorld * a_World, cPlayer * a_Player, + int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, + int a_CursorX, int a_CursorY, int a_CursorZ, + BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta + ) override + { + a_BlockType = E_BLOCK_TRIPWIRE; + a_BlockMeta = 0; + return true; + } +}; + + + + |