diff options
author | andrew <xdotftw@gmail.com> | 2014-02-17 15:27:12 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-17 15:27:12 +0100 |
commit | 3b24bc870bb39a8b8812ed307250e1188b9ff788 (patch) | |
tree | 8b6cf830e06a0fe6bd1eb8769ba571f9316a4707 /src/Items/ItemHandler.h | |
parent | cMap::UpdateRadius (diff) | |
download | cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.gz cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.bz2 cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.lz cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.xz cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.zst cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemHandler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Items/ItemHandler.h b/src/Items/ItemHandler.h index 1a6bb044f..ef3f37a7a 100644 --- a/src/Items/ItemHandler.h +++ b/src/Items/ItemHandler.h @@ -32,6 +32,14 @@ public: UNUSED(a_BlockZ); UNUSED(a_BlockFace); } + + /// Called every tick while the item is on the player's inventory (Used by maps) - For now, called only for equipped items + virtual void OnUpdate(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item) + { + UNUSED(a_World); + UNUSED(a_Player); + UNUSED(a_Item); + } /// Called while the player diggs a block using this item virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_HeldItem, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace); |